-
Notifications
You must be signed in to change notification settings - Fork 75
ci: Replace depcheck with knip #1294
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: main
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| import commonConfig from "../../knip.common.config.js"; | ||
|
|
||
| commonConfig.ignoreDependencies.push( | ||
| "eslint" | ||
| ); | ||
|
|
||
| export default commonConfig; | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,10 @@ | ||
| import commonConfig from "../../knip.common.config.js"; | ||
|
|
||
| commonConfig.ignoreDependencies.push( | ||
| "docdash", | ||
| "jsdoc", | ||
| "open-cli", | ||
| "cssnano", | ||
| ); | ||
|
|
||
| export default commonConfig; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,7 @@ | ||
| import commonConfig from "../../knip.common.config.js"; | ||
|
|
||
| commonConfig.ignoreDependencies.push( | ||
| "eslint" | ||
| ); | ||
|
|
||
| export default commonConfig; |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -19,12 +19,12 @@ | |
| "directory": "internal/shrinkwrap-extractor" | ||
| }, | ||
| "scripts": { | ||
| "test": "npm run lint && npm run coverage && npm run depcheck", | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Please keep the script execution in the (same comment for all other occurrences of this removal) |
||
| "test": "npm run lint && npm run coverage", | ||
| "unit": "node --test test/lib/convertToShrinkwrap.js", | ||
| "unit-watch": "node --test --watch test/lib/convertToShrinkwrap.js", | ||
| "coverage": "node --test --experimental-test-coverage 'test/lib/convertToShrinkwrap.js'", | ||
| "lint": "eslint .", | ||
| "depcheck": "depcheck" | ||
| "knip": "knip --config knip.config.js" | ||
| }, | ||
| "keywords": [ | ||
| "npm", | ||
|
|
@@ -44,7 +44,7 @@ | |
| "pacote": "^21.0.4" | ||
| }, | ||
| "devDependencies": { | ||
| "depcheck": "^1.4.7", | ||
| "eslint": "^9.39.1" | ||
| "eslint": "^9.39.1", | ||
| "knip": "^5.83.1" | ||
| } | ||
| } | ||
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would not expect that we need to ignore eslint, as it is used. Maybe the plugin needs to be configured differently? https://knip.dev/reference/plugins/eslint
In our setup we have also a
eslint.common.config.js, which doesn't match the default patterns.In case you already checked this, please add a comment that describes why it still needs to be ignored here.