Skip to content

Commit 41d57a9

Browse files
committed
Fix Knip config
1 parent 3f05158 commit 41d57a9

File tree

3 files changed

+10
-6
lines changed

3 files changed

+10
-6
lines changed

knip.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ const config: KnipConfig = {
1010
'node_package/src/registerServerComponent/client.ts!',
1111
'node_package/src/registerServerComponent/server.ts!',
1212
'node_package/src/RSCClientRoot.ts!',
13+
'eslint.config.ts',
1314
],
1415
project: ['node_package/src/**/*.[jt]s{x,}!', 'node_package/tests/**/*.[jt]s{x,}'],
1516
babel: {
@@ -27,8 +28,17 @@ const config: KnipConfig = {
2728
'@types/turbolinks',
2829
// The Knip ESLint plugin fails to detect these are transitively required by a config,
2930
// though we don't actually use its rules anywhere.
31+
'@babel/eslint-parser',
32+
'@babel/preset-react',
33+
'eslint-config-shakacode',
34+
'eslint-import-resolver-alias',
35+
'eslint-plugin-import',
3036
'eslint-plugin-jsx-a11y',
3137
'eslint-plugin-react',
38+
'eslint-plugin-react-hooks',
39+
// These are used as transitive dependencies and missing from package.json
40+
'@eslint/eslintrc',
41+
'@eslint/js',
3242
// Used in CI
3343
'@arethetypeswrong/cli',
3444
// used by Jest

package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
"@babel/eslint-parser": "^7.26.10",
2323
"@babel/preset-env": "^7.20.2",
2424
"@babel/preset-react": "^7.26.3",
25-
"@eslint/compat": "^1.2.7",
2625
"@testing-library/dom": "^10.4.0",
2726
"@testing-library/jest-dom": "^6.6.3",
2827
"@testing-library/react": "^16.2.0",

yarn.lock

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,11 +1073,6 @@
10731073
resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.12.1.tgz#cfc6cffe39df390a3841cde2abccf92eaa7ae0e0"
10741074
integrity sha512-CCZCDJuduB9OUkFkY2IgppNZMi2lBQgD2qzwXkEia16cge2pijY/aXi96CJMquDMn3nJdlPV1A5KrJEXwfLNzQ==
10751075

1076-
"@eslint/compat@^1.2.7":
1077-
version "1.2.7"
1078-
resolved "https://registry.yarnpkg.com/@eslint/compat/-/compat-1.2.7.tgz#f1a890281631ad27530479420b743dd92626e819"
1079-
integrity sha512-xvv7hJE32yhegJ8xNAnb62ggiAwTYHBpUCWhRxEj/ksvgDJuSXfoDkBcRYaYNFiJ+jH0IE3K16hd+xXzhBgNbg==
1080-
10811076
"@eslint/config-array@^0.19.2":
10821077
version "0.19.2"
10831078
resolved "https://registry.yarnpkg.com/@eslint/config-array/-/config-array-0.19.2.tgz#3060b809e111abfc97adb0bb1172778b90cb46aa"

0 commit comments

Comments
 (0)