Skip to content

Commit

Permalink
chore: add dev dependencies for commitlint
Browse files Browse the repository at this point in the history
  • Loading branch information
poppabear8883 committed Dec 21, 2017
1 parent 467b2b9 commit 855ed07
Show file tree
Hide file tree
Showing 3 changed files with 1,133 additions and 1 deletion.
44 changes: 44 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
module.exports = {
rules: {
'body-leading-blank': [1, 'always'],

'footer-leading-blank': [1, 'always'],

'header-max-length': [2, 'always', 72],

'scope-case': [2, 'always', 'upper-case'],

'subject-case': [
2,
'never',
['sentence-case', 'start-case', 'pascal-case', 'upper-case']
],

'subject-empty': [2, 'never'],

'subject-full-stop': [2, 'never', '.'],

'type-case': [2, 'always', 'lower-case'],

'type-empty': [2, 'never'],

'type-enum': [
2,
'always',
[
'build',
'chore',
'ci',
'docs',
'feat',
'fix',
'perf',
'refact',
'revert',
'style',
'tests',
'ui'
]
]
}
};
Loading

0 comments on commit 855ed07

Please sign in to comment.