Skip to content

Commit da79d1a

Browse files
authored
Update lint-staged config (#2988)
Rather than running `yarn dedupe --check` in the pre-commit hook we now run `yarn dedupe` whenever `yarn.lock` has changed. This means we no longer need to run `yarn dedupe` manually after adding or updating dependencies, and also fixes an issue in Dependabot.
1 parent 5159929 commit da79d1a

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,14 +41,17 @@
4141
"update-readme-content": "tsx ./scripts/update-readme-content.mts"
4242
},
4343
"simple-git-hooks": {
44-
"pre-commit": "yarn lint-staged && yarn dedupe --check && yarn update-readme-content"
44+
"pre-commit": "yarn lint-staged && yarn update-readme-content"
4545
},
4646
"lint-staged": {
4747
"*.{js,ts,tsx,jsx}": [
4848
"eslint --fix"
4949
],
5050
"!(CHANGELOG).{json,yml,md}": [
5151
"prettier --write"
52+
],
53+
"yarn.lock": [
54+
"yarn dedupe"
5255
]
5356
},
5457
"resolutions": {

0 commit comments

Comments
 (0)