shareable config for commitlint
This is my shareable config for commitlint. My config mostly follows angular commit convention, as implemented in the "soft fork" as @commitlint/config-conventional.
Beyond what is implemented in the @commitlint/config-conventional
, I also
enable a type
of wip
for commits that don't fit the default types. This is most often
because the does not complete one of default types, but is instead progress
toward one.
$ npm install commitlint-config-travi -D
$ echo "module.exports = {extends: ['travi']};" > .commitlintrc.js
Define the husky hook
(in a .huskyrc.json
,
for example)
{
"hooks": {
"commit-msg": "commitlint -e"
}
}