Skip to content

Commit

Permalink
feat: Adjust commitlint config for our standards
Browse files Browse the repository at this point in the history
Our standards differ from the "conventional" config by the following:

 * We allow the subject to be anything but upper case
 * We allow kebab case scope (Well...)
 * By default, we do not allow scopes
 * We allow a max line length of 90 characters for the body and footer
  • Loading branch information
jimjenkins5 committed Feb 27, 2019
1 parent 777f090 commit 0034b96
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions commitlint.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@
module.exports = {
rules: {
'body-leading-blank': [ 2, 'always' ],
'body-max-line-length': [ 2, 'always', 90 ],
'footer-leading-blank': [ 2, 'always' ],
'footer-max-line-length': [ 2, 'always', 90 ],
'header-max-length': [ 2, 'always', 72 ],
'scope-case': [ 2, 'always', 'lower-case' ],
'scope-case': [ 2, 'always', [ 'lower-case', 'kebab-case' ] ],
'scope-empty': [ 2, 'always' ],
'subject-case': [
2,
'never',
[ 'sentence-case', 'start-case', 'pascal-case', 'upper-case' ],
[ 'upper-case' ],
],
'subject-empty': [ 2, 'never' ],
'subject-full-stop': [ 2, 'never', '.' ],
Expand Down

0 comments on commit 0034b96

Please sign in to comment.