Skip to content

Commit 241bdfe

Browse files
committed
use knip
1 parent a18adf2 commit 241bdfe

File tree

3 files changed

+1421
-329
lines changed

3 files changed

+1421
-329
lines changed

knip.json

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
{
2+
"ignore": [
3+
".husky/*",
4+
"tests/*",
5+
"tsup.config.ts"
6+
],
7+
"ignoreBinaries": [
8+
"lint-staged"
9+
],
10+
"ignoreDependencies": [
11+
"gulp"
12+
]
13+
}

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,8 @@
5151
"scripts": {
5252
"build": "tsup",
5353
"dev": "npm run build -- --watch",
54-
"lint:js": "eslint ./src/**/*.ts --ignore-path .gitignore",
54+
"lint:deps": "knip --production",
55+
"lint:ts": "eslint ./src/**/*.ts --ignore-path .gitignore",
5556
"lint": "npm-run-all --parallel lint:*",
5657
"prepack": "npm run build",
5758
"prepare": "husky install",

0 commit comments

Comments
 (0)