|
|
@ -1,8 +1,19 @@ |
|
|
|
module.exports = { |
|
|
|
extends: ['@commitlint/config-conventional'], |
|
|
|
parserPreset: 'conventional-changelog-conventionalcommits', |
|
|
|
rules: { |
|
|
|
'subject-case': [2, 'always', ['sentence-case']], |
|
|
|
'body-leading-blank': [2, 'always'], |
|
|
|
'footer-leading-blank': [2, 'always'] |
|
|
|
} |
|
|
|
'body-max-line-length': [2, 'always', 100], |
|
|
|
'footer-leading-blank': [2, 'always'], |
|
|
|
'footer-max-line-length': [2, 'always', 100], |
|
|
|
'header-max-length': [2, 'always', 100], |
|
|
|
'scope-case': [2, 'always', 'lower-case'], |
|
|
|
'subject-case': [2, 'always', ['sentence-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', 'refactor', 'revert', 'style', 'test'] |
|
|
|
], |
|
|
|
}, |
|
|
|
}; |