Skip to content

Commit

Permalink
testcommitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
huangmingfu committed Dec 27, 2024
1 parent bea1b7a commit cd1cd85
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,8 @@
"vite-plugin-checker": "^0.8.0"
},
"simple-git-hooks": {
"pre-commit": "npx --no -- commitlint --edit $1"
"pre-commit": "npx lint-staged",
"commit-msg": "npx --no -- commitlint --from=HEAD~1 --to=HEAD"
},
"lint-staged": {
"*": "eslint --fix"
Expand Down

0 comments on commit cd1cd85

Please sign in to comment.