Skip to content

Commit a4cdc2c

Browse files
chore: Update husky to v9
1 parent ac05b8a commit a4cdc2c

File tree

5 files changed

+8
-17
lines changed

5 files changed

+8
-17
lines changed

.husky/commit-msg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
41
npm run commitlint -- --edit $1

.husky/pre-commit

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
41
npx lint-staged

.husky/prepare-commit-msg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1 @@
1-
#!/usr/bin/env sh
2-
. "$(dirname -- "$0")/_/husky.sh"
3-
41
exec < /dev/tty && node_modules/.bin/cz --hook || true

package-lock.json

Lines changed: 6 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"quality": "npm run lint && npm run test",
3333
"commit": "git-cz",
3434
"commitlint": "commitlint --color --verbose",
35-
"prepare": "husky install"
35+
"prepare": "husky"
3636
},
3737
"devDependencies": {
3838
"@babel/core": "^7.26.0",
@@ -59,7 +59,7 @@
5959
"eslint-plugin-compat": "^4.2.0",
6060
"eslint-plugin-prettier": "^5.2.1",
6161
"eslint-plugin-react": "^7.37.4",
62-
"husky": "^8.0.3",
62+
"husky": "^9.1.7",
6363
"inquirer": "^8.2.6",
6464
"jest": "^29.7.0",
6565
"jest-environment-jsdom": "^29.7.0",

0 commit comments

Comments
 (0)