Skip to content

Commit

Permalink
feat: 修改husky配置
Browse files Browse the repository at this point in the history
  • Loading branch information
Cosen95 committed Aug 22, 2021
1 parent 488a6c2 commit a156ef0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

echo "========= 执行commit-msg校验 ======="
npx --no-install commitlint --edit $1
4 changes: 4 additions & 0 deletions .husky/pre-commit
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

echo "========= 执行pre-commit操作(如执行测试用例、eslint校验等,可自行添加) ======="

0 comments on commit a156ef0

Please sign in to comment.