Skip to content

Commit a58b30e

Browse files
committed
Run knip in strict mode
1 parent 19b469e commit a58b30e

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

knip.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ const config: KnipConfig = {
2929
ignoreDependencies: [
3030
'@iconify-json/*',
3131

32+
/** Gives false positive for knip in strict mode, because a type is re-exported. */
33+
'@npm/types',
34+
3235
/** Strict mode knip complains about this for some reason, even when uno.config.ts is added as an entry */
3336
'unocss',
3437
'@vercel/kv',

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
"dev:docs": "pnpm run --filter npmx-docs dev --port=3001",
1818
"i18n:check": "node scripts/compare-translations.ts",
1919
"i18n:check:fix": "node scripts/compare-translations.ts --fix",
20-
"knip": "knip",
20+
"knip": "knip --strict",
2121
"knip:fix": "knip --fix",
2222
"lint": "oxlint && oxfmt --check",
2323
"lint:fix": "oxlint --fix && oxfmt",

0 commit comments

Comments
 (0)