Skip to content

Commit

Permalink
feat: lint commit messages before commit
Browse files Browse the repository at this point in the history
  • Loading branch information
phoqe committed Dec 15, 2020
1 parent b87ef6e commit 4b3fc94
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,10 +43,16 @@
},
"husky": {
"hooks": {
"pre-commit": "pretty-quick --staged"
"pre-commit": "pretty-quick --staged",
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
},
"bin": {
"havelock": "cli.js"
},
"commitlint": {
"extends": [
"@commitlint/config-conventional"
]
}
}

0 comments on commit 4b3fc94

Please sign in to comment.