Skip to content

Commit d8690b1

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

File tree

3 files changed

+573
-136
lines changed

3 files changed

+573
-136
lines changed

.depcheckrc.json

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
{
2+
"ignores": [
3+
"@lavamoat/allow-scripts",
4+
"@lavamoat/preinstall-always-fail",
5+
"@metamask/auto-changelog",
6+
"@types/*",
7+
"prettier-plugin-packagejson",
8+
"ts-node",
9+
"typedoc"
10+
]
11+
}

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)