Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(create-dumi): update husky to v9 #2178

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 1 addition & 4 deletions suites/boilerplate/templates/react/.husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx commitlint --edit "${1}"
commitlint --edit "${1}"
5 changes: 1 addition & 4 deletions suites/boilerplate/templates/react/.husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
lint-staged
4 changes: 2 additions & 2 deletions suites/boilerplate/templates/react/package.json.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
"build:watch": "father dev",
"docs:build": "dumi build",
"docs:preview": "dumi preview",
"prepare": "husky install && dumi setup",
"prepare": "husky && dumi setup",
"doctor": "father doctor",
"lint": "npm run lint:es && npm run lint:css",
"lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
Expand Down Expand Up @@ -63,7 +63,7 @@
"dumi": "{{{ version }}}",
"eslint": "^8.23.0",
"father": "^4.1.0",
"husky": "^8.0.1",
"husky": "^9.1.2",
"lint-staged": "^13.0.3",
"prettier": "^2.7.1",
"prettier-plugin-organize-imports": "^3.0.0",
Expand Down
5 changes: 1 addition & 4 deletions suites/boilerplate/templates/site/.husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx commitlint --edit "${1}"
commitlint --edit "${1}"
5 changes: 1 addition & 4 deletions suites/boilerplate/templates/site/.husky/pre-commit
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged
lint-staged
4 changes: 2 additions & 2 deletions suites/boilerplate/templates/site/package.json.tpl
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
"dev": "dumi dev",
"build": "dumi build",
"preview": "dumi preview",
"prepare": "husky install && dumi setup"
"prepare": "husky && dumi setup"
},
"authors": [{{#author}}
"{{{ author }}}"
Expand All @@ -27,7 +27,7 @@
"@commitlint/cli": "^17.1.2",
"@commitlint/config-conventional": "^17.1.0",
"dumi": "{{{version}}}",
"husky": "^8.0.1",
"husky": "^9.1.2",
"lint-staged": "^13.0.3",
"prettier": "^2.7.1"
}
Expand Down
Loading