Skip to content

Commit 05d8b08

Browse files
committed
chore: add knip configuration and update linting scripts in package.json
1 parent 14977e5 commit 05d8b08

4 files changed

Lines changed: 526 additions & 10 deletions

File tree

knip.config.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
import type { KnipConfig } from "knip";
2+
3+
const config: KnipConfig = {
4+
ignoreIssues: { ".github/**/*.yml": ["binaries"] },
5+
};
6+
7+
export default config;

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -47,8 +47,8 @@
4747
"scripts": {
4848
"dev": "tsdown src/index.ts --watch",
4949
"build": "tsdown",
50-
"lint": "eslint .",
51-
"lint:fix": "eslint . --fix",
50+
"lint": "knip && eslint .",
51+
"lint:fix": "knip fix && eslint . --fix",
5252
"format": "prettier --check .",
5353
"format:fix": "prettier --write --list-different .",
5454
"check-types": "tsc --noEmit",
@@ -66,6 +66,7 @@
6666
"@types/node": "^24.12.4",
6767
"bumpp": "^11.1.0",
6868
"eslint": "^10.4.0",
69+
"knip": "^6.14.2",
6970
"prettier": "^3.8.3",
7071
"tsdown": "^0.22.0",
7172
"typescript": "^6.0.3",

0 commit comments

Comments
 (0)