Skip to content

Commit 824d16c

Browse files
authored
chore: Add npm script for auto-fixing dependency lint issues (#268)
This matches what we use in `core`. Previously `lint` would actually run `yarn dedupe` and modify the lockfile, which is certainly not what I would expect from a lint command.
1 parent 19a2d63 commit 824d16c

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

package.json

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,10 @@
3636
"lint": "yarn lint:eslint && yarn lint:constraints && yarn lint:misc --check && yarn lint:dependencies --check && yarn lint:changelog",
3737
"lint:changelog": "auto-changelog validate --prettier",
3838
"lint:constraints": "yarn constraints",
39-
"lint:dependencies": "depcheck && yarn dedupe",
39+
"lint:dependencies": "depcheck && yarn dedupe --check",
40+
"lint:dependencies:fix": "depcheck && yarn dedupe",
4041
"lint:eslint": "eslint . --cache",
41-
"lint:fix": "yarn lint:eslint --fix && yarn lint:constraints --fix && yarn lint:misc --write && yarn lint:dependencies && yarn lint:changelog",
42+
"lint:fix": "yarn lint:eslint --fix && yarn lint:constraints --fix && yarn lint:misc --write && yarn lint:dependencies:fix && yarn lint:changelog",
4243
"lint:misc": "prettier '**/*.json' '**/*.md' '**/*.yml' '!.yarnrc.yml' --ignore-path .gitignore --no-error-on-unmatched-pattern",
4344
"prepack": "./scripts/prepack.sh",
4445
"test": "vitest && attw --pack",

0 commit comments

Comments
 (0)