Skip to content

Commit

Permalink
Build: Add commitlint (fixes #19) [skip ci]
Browse files Browse the repository at this point in the history
  • Loading branch information
morriq committed May 27, 2019
1 parent bd3881b commit da1c560
Show file tree
Hide file tree
Showing 5 changed files with 5,592 additions and 286 deletions.
5 changes: 5 additions & 0 deletions .huskyrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
{
"hooks": {
"commit-msg": "commitlint -E HUSKY_GIT_PARAMS"
}
}
23 changes: 23 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
module.exports = {
extends: [
'@commitlint/config-conventional'
],
rules: {
'subject-case': [2, 'always', 'sentence-case'],
'subject-empty': [2, 'never'],
'type-case': [2, 'always', 'sentence-case'],
'type-enum': [
2,
'always',
[
'Fix',
'Update',
'New',
'Build',
'Docs',
'Breaking',
'Upgrade'
]
]
}
};
Loading

0 comments on commit da1c560

Please sign in to comment.