shareable config for commitlint
This is a shareable config for commitlint, which helps us ensure our commits are compatible with semantic-release.
This config extends commitlint-config-travi.
$ npm install commitlint-config-traverson --save-dev
$ echo "module.exports = {extends: ['traverson']};" > .commitlintrc.js
Define the husky hook
(in a .huskyrc.json
,
for example)
{
"hooks": {
"commit-msg": "commitlint -e"
}
}
$ nvm install
$ npm install
$ npm test