Skip to content

Commit

Permalink
Simplify knip config into a single file (fixes webpro-nl/knip#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
webpro committed Mar 27, 2024
1 parent bd0c5f3 commit 3277e8d
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 11 deletions.
2 changes: 1 addition & 1 deletion knip.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@
"$schema": "https://unpkg.com/knip@latest/schema.json",
"entry": ["src/index.ts!"],
"ignoreExportsUsedInFile": { "interface": true, "type": true },
"project": ["src/**/*.ts!"]
"project": ["src/**/*.ts!", "!src/test/utils.ts!"]
}
9 changes: 0 additions & 9 deletions knip.production.jsonc

This file was deleted.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
"lint": "eslint . .*js --max-warnings 0",
"lint:docs": "typedoc --validation --treatValidationWarningsAsErrors",
"lint:knip": "knip",
"lint:knip:production": "knip --config knip.production.jsonc --production",
"lint:knip:production": "knip --production",
"lint:md": "markdownlint \"**/*.md\" \".github/**/*.md\" --rules sentences-per-line",
"lint:packages": "pnpm dedupe --check",
"lint:spelling": "cspell \"**\" \".github/**/*\"",
Expand Down

0 comments on commit 3277e8d

Please sign in to comment.