Skip to content

Commit a26abf5

Browse files
committed
fix(husky): migrate to v9
1 parent 3d92572 commit a26abf5

File tree

4 files changed

+1
-9
lines changed

4 files changed

+1
-9
lines changed

.husky/commit-msg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
41
if [[ "$OS" == "Windows_NT" ]]; then
52
npx.cmd --no-install commitlint -e $GIT_PARAMS
63
else

.husky/pre-commit

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,3 @@
1-
#!/bin/sh
2-
. "$(dirname "$0")/_/husky.sh"
3-
41
if [[ "$OS" == "Windows_NT" ]]; then
52
npx.cmd lint-staged
63
else

.husky/prepare-commit-msg

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,5 @@
1-
#!/bin/sh
21
[[ "$(uname -a)" = *"MINGW64"* ]] && exit 0
32
[ -n "$CI" ] && exit 0
4-
. "$(dirname "$0")/_/husky.sh"
53

64
if [[ "$OS" == "Windows_NT" ]]; then
75
exec < /dev/tty && npx.cmd git-cz --hook || true

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"lint:fix": "eslint --ext .vue,.js,jsx,.ts,.tsx ./ --max-warnings 0 --fix",
1616
"stylelint": "stylelint src/**/*.{html,vue,sass,less}",
1717
"stylelint:fix": "stylelint --fix src/**/*.{html,vue,css,sass,less}",
18-
"prepare": "husky install",
18+
"prepare": "husky",
1919
"site:preview": "npm run build && cp -r dist _site",
2020
"test": "echo \"no test specified,work in process\"",
2121
"test:coverage": "echo \"no test:coverage specified,work in process\""

0 commit comments

Comments
 (0)