Skip to content

Commit d73276c

Browse files
Add find-deadcode npm script
1 parent 04df20a commit d73276c

2 files changed

Lines changed: 6 additions & 0 deletions

File tree

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
{
2+
"extends": "../tsconfig.json",
3+
"include": ["**/*.ts*"],
4+
"exclude": ["node_modules"]
5+
}

extensions/ql-vscode/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1732,6 +1732,7 @@
17321732
"format": "prettier --write **/*.{ts,tsx} && eslint . --ext .ts,.tsx --fix",
17331733
"lint": "eslint . --ext .js,.ts,.tsx --max-warnings=0",
17341734
"lint:markdown": "markdownlint-cli2 \"../../**/*.{md,mdx}\" \"!**/node_modules/**\" \"!**/.vscode-test/**\" \"!**/build/cli/v*/**\"",
1735+
"find-deadcode": "ts-unused-exports find-deadcode-tsconfig.json --showLineNumber --excludePathsFromReport=$(find src test -type f '(' -name jest.config.ts -or -name 'index.tsx' -or -name 'index.ts' ')' -print0 | tr '\\0' ';')'gulpfile.ts/;src/stories/;test/vscode-tests/jest-runner-installed-extensions.ts'",
17351736
"format-staged": "lint-staged",
17361737
"storybook": "storybook dev -p 6006",
17371738
"build-storybook": "storybook build",

0 commit comments

Comments
 (0)