Skip to content

Commit

Permalink
chore: 更新 commitlint 的规则
Browse files Browse the repository at this point in the history
  • Loading branch information
koppthe committed Jul 20, 2018
1 parent 749e726 commit e86d6e2
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 4 deletions.
22 changes: 22 additions & 0 deletions .commitlintrc.js
@@ -0,0 +1,22 @@
module.exports = {
parserPreset: {
parserOpts: {
headerPattern: /^(\w*)(?:\((.*)\))?:[ ]?(.*)$/,
headerCorrespondence: ['type', 'scope', 'subject']
}
},
rules: {
'type-empty': [2, 'never'],
'type-case': [2, 'always', 'lower-case'],
'subject-empty': [2, 'never'],
'type-enum': [2, 'always', [
'feat',
'fix',
'docs',
'style',
'refactor',
'test',
'chore',
]]
}
}
4 changes: 0 additions & 4 deletions commitlint.config.js

This file was deleted.

0 comments on commit e86d6e2

Please sign in to comment.