Skip to content

Commit

Permalink
chore(husky): create dedicated commit message hook for commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
oliviera9 committed Jan 12, 2024
1 parent 6ac3710 commit 82a4392
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
4 changes: 4 additions & 0 deletions .husky/commit-msg
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/bin/sh
. "$(dirname "$0")/_/husky.sh"

npx --no-install commitlint --edit "$1"
1 change: 0 additions & 1 deletion .husky/pre-commit
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,3 @@
. "$(dirname "$0")/_/husky.sh"

npx lint-staged
npx --no-install commitlint --edit "$1"

0 comments on commit 82a4392

Please sign in to comment.