Skip to content

Commit

Permalink
build: lint commit messages so that CHANGELOG can be generated
Browse files Browse the repository at this point in the history
automatically
  • Loading branch information
gjdev committed Sep 22, 2017
1 parent 7ae094d commit f5df033
Show file tree
Hide file tree
Showing 4 changed files with 2,748 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
/.settings
/node_modules/
/bundle/build/
/bundle/compiled/
/bundle/dist/
Expand Down
29 changes: 29 additions & 0 deletions commitlint.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
module.exports = {
extends: ['@commitlint/config-lerna-scopes'],
rules: {
'body-leading-blank': [1, 'always'],
lang: [1, 'always', 'eng'],
'scope-case': [2, 'always', 'lowerCase'],
'subject-empty': [2, 'never'],
'subject-full-stop': [2, 'never', '.'],
'type-case': [2, 'always', 'lowerCase'],
'type-empty': [2, 'never'],
'type-enum': [
2,
'always',
[
'build',
'chore',
'ci',
'docs',
'feat',
'fix',
'perf',
'refactor',
'revert',
'style',
'test'
]
]
}
};
Loading

0 comments on commit f5df033

Please sign in to comment.