Skip to content

Commit 1410824

Browse files
authored
chore: decouple knip from default lint script (#460)
1 parent 0e96e47 commit 1410824

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

.github/workflows/checks.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,8 @@ jobs:
4242
run: npm ci
4343
- name: Run ESLint
4444
run: npm run lint
45+
- name: Run Knip
46+
run: npm run knip
4547
build-check:
4648
name: Build check
4749
runs-on: ubuntu-latest

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,9 @@
2828
"prestart": "npm run build",
2929
"start": "cd dist && node src/index.js",
3030
"build:check": "npm run build -- --noEmit",
31-
"knip": "knip --config .knip.json --production --include files,dependencies --no-progress --reporter compact",
32-
"lint": "npm run knip && eslint --ext .ts ./src ./test",
31+
"knip": "knip --config .knip.json --production --no-progress --reporter compact",
32+
"lint": "eslint --ext .ts ./src ./test",
33+
"check:all": "npm run lint && npm run knip",
3334
"lint:report": "eslint -o .lint-reports/eslint.json -f json --ext .ts ./src ./test",
3435
"lint:fix": "npm run lint -- --fix",
3536
"import": "node -r ts-node/register src/import-events.ts",

0 commit comments

Comments
 (0)