Skip to content

Commit 1cd8abb

Browse files
committed
devDeps: add depcheck, lint:dependencies packages script
1 parent a56fcdf commit 1cd8abb

File tree

2 files changed

+562
-136
lines changed

2 files changed

+562
-136
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,9 +27,10 @@
2727
"build": "tsc --project tsconfig.build.json",
2828
"build:clean": "rimraf dist && yarn build",
2929
"build:docs": "typedoc",
30-
"lint": "yarn lint:eslint && yarn lint:misc --check",
30+
"lint": "yarn lint:eslint && yarn lint:misc --check && yarn lint:dependencies --check",
31+
"lint:dependencies": "depcheck && yarn dedupe",
3132
"lint:eslint": "eslint . --cache --ext js,ts",
32-
"lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write",
33+
"lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write && yarn lint:dependencies",
3334
"lint:misc": "prettier '**/*.json' '**/*.md' '!CHANGELOG.md' '**/*.yml' '!.yarnrc.yml' --ignore-path .gitignore --no-error-on-unmatched-pattern",
3435
"prepack": "./scripts/prepack.sh",
3536
"test": "jest && jest-it-up",
@@ -49,6 +50,7 @@
4950
"@types/jest": "^28.1.6",
5051
"@typescript-eslint/eslint-plugin": "^5.42.1",
5152
"@typescript-eslint/parser": "^5.42.1",
53+
"depcheck": "^1.4.5",
5254
"eslint": "^8.27.0",
5355
"eslint-config-prettier": "^8.5.0",
5456
"eslint-plugin-import": "^2.26.0",

0 commit comments

Comments
 (0)