Skip to content
This repository has been archived by the owner on Nov 9, 2023. It is now read-only.

Commit

Permalink
lint: add lint:dependencies using depcheck (#57)
Browse files Browse the repository at this point in the history
* lint: add lint:dependencies using depcheck

* chore: add packages from ./.yarn/plugins/@yarnpkg/plugin-constraints.cjs to depcheckIgnore
  • Loading branch information
legobeat authored Sep 21, 2023
1 parent 6f9cf5a commit 1c2c521
Show file tree
Hide file tree
Showing 3 changed files with 632 additions and 230 deletions.
15 changes: 15 additions & 0 deletions .depcheckrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
{
"ignores": [
"@lavamoat/allow-scripts",
"@lavamoat/preinstall-always-fail",
"@metamask/auto-changelog",
"@types/*",
"@yarnpkg/cli",
"@yarnpkg/core",
"@yarnpkg/fslib",
"clipanion",
"prettier-plugin-packagejson",
"ts-node",
"typedoc"
]
}
4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@
"scripts": {
"build": "tsc --project tsconfig.build.json",
"build:clean": "rimraf dist && yarn build",
"lint": "yarn lint:eslint && yarn lint:misc --check",
"lint": "yarn lint:eslint && yarn lint:misc --check && yarn lint:dependencies",
"lint:dependencies": "depcheck",
"lint:eslint": "eslint . --cache --ext js,ts",
"lint:fix": "yarn lint:eslint --fix && yarn lint:misc --write",
"lint:misc": "prettier '**/*.json' '**/*.md' '!CHANGELOG.md' '**/*.yml' '!.yarnrc.yml' --ignore-path .gitignore --no-error-on-unmatched-pattern",
Expand Down Expand Up @@ -42,6 +43,7 @@
"@types/readable-stream": "^2.3.9",
"@typescript-eslint/eslint-plugin": "^4.21.0",
"@typescript-eslint/parser": "^4.21.0",
"depcheck": "^1.4.5",
"eslint": "^7.23.0",
"eslint-config-prettier": "^8.1.0",
"eslint-plugin-import": "^2.22.1",
Expand Down
Loading

0 comments on commit 1c2c521

Please sign in to comment.