Skip to content

Commit

Permalink
chore(husky): fix pre-commit hook (#4260)
Browse files Browse the repository at this point in the history
* chore(husky): fix pre-commit hook
  • Loading branch information
kennylam authored Sep 13, 2024
1 parent ba6b76b commit 01840c9
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 10 deletions.
1 change: 1 addition & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
npx --no-install lint-staged
8 changes: 2 additions & 6 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@
"lint:js": "NODE_ENV=test eslint . --fix",
"format": "prettier --write 'src/**/*.{css,scss,json,html,yaml,md,mdx,js}'",
"format:check": "prettier --check 'src/**/*.{css,scss,json,html,yaml,md,mdx,js}'",
"update-browserslist": "npx browserslist-ga"
"update-browserslist": "npx browserslist-ga",
"prepare": "husky"
},
"engines": {
"node": ">=18.x"
Expand Down Expand Up @@ -69,11 +70,6 @@
"prettier": "^2.0.2",
"typescript": "^4.8.4"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"*.js": [
"eslint --fix"
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -13488,11 +13488,11 @@ __metadata:
linkType: hard

"husky@npm:^9.0.11":
version: 9.0.11
resolution: "husky@npm:9.0.11"
version: 9.1.6
resolution: "husky@npm:9.1.6"
bin:
husky: bin.mjs
checksum: 2c787dcf74a837fc9a4fea7da907509d4bd9a289f4ea10ecc9d86279e4d4542b0f5f6443a619bccae19e265f2677172cc2b86aae5c932a35a330cc227d914605
husky: bin.js
checksum: 705673db4a247c1febd9c5df5f6a3519106cf0335845027bb50a15fba9b1f542cb2610932ede96fd08008f6d9f49db0f15560509861808b0031cdc0e7c798bac
languageName: node
linkType: hard

Expand Down

0 comments on commit 01840c9

Please sign in to comment.