Skip to content

Commit

Permalink
chore(git): add commit msg hook
Browse files Browse the repository at this point in the history
  • Loading branch information
Th3S4mur41 authored Sep 13, 2022
1 parent 669911e commit 2b92693
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 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-install commitlint --edit "$1"
24 changes: 23 additions & 1 deletion package-lock.json

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

6 changes: 5 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,12 @@
"vulnerabilities",
"dependencies"
],
"scripts": {
"prepare": "husky install"
},
"devDependencies": {
"@commitlint/cli": "^17.1.2",
"@commitlint/config-conventional": "^17.1.0"
"@commitlint/config-conventional": "^17.1.0",
"husky": "^8.0.1"
}
}

0 comments on commit 2b92693

Please sign in to comment.