Skip to content

Commit

Permalink
feat: 配置 husky pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
boyongjiong committed Aug 7, 2024
1 parent 1ae45ff commit 8e63a14
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx --no -- 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 @@
#!/usr/bin/env sh
. "$(dirname -- "$0")/_/husky.sh"

npx lint-staged

0 comments on commit 8e63a14

Please sign in to comment.