Skip to content

Commit

Permalink
chore: husky update
Browse files Browse the repository at this point in the history
  • Loading branch information
wanpan11 committed Jul 26, 2024
1 parent d80932a commit dd75541
Show file tree
Hide file tree
Showing 4 changed files with 30 additions and 22 deletions.
5 changes: 1 addition & 4 deletions .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 .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 package.json
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
"lint": "npm run lint:es",
"lint:css": "stylelint \"{src,test}/**/*.{css,less}\"",
"lint:es": "eslint \"{src,test}/**/*.{js,jsx,ts,tsx}\"",
"prepare": "husky install && dumi setup",
"prepare": "husky && dumi setup",
"prepublishOnly": "father doctor && npm run build",
"start": "npm run dev"
},
Expand Down Expand Up @@ -68,7 +68,7 @@
"dumi": "^2.4.5",
"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
38 changes: 26 additions & 12 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit dd75541

Please sign in to comment.