ci: improve commitlint configuration

Added types: build, feature
no longer checks subject's case
now forces a leading blank before body (This is required by Github)
Increased body length to 200
This commit is contained in:
MikeWallaceDev 2022-02-24 20:36:18 -05:00
parent 87cc542275
commit be3141b08e

View File

@ -3,20 +3,20 @@ module.exports = {
rules: {
'header-max-length': [2, 'always', 100],
'type-enum': [2, 'always', ['chore', 'ci', 'docs', 'feat', 'fix', 'refactor', 'style', 'test']],
'type-enum': [2, 'always', ['build', 'chore', 'ci', 'docs', 'feat', 'feature', 'fix', 'refactor', 'style', 'test']],
'type-empty': [2, 'never'],
'type-case': [2, 'always', 'lower-case'],
'subject-empty': [2, 'never'],
'subject-case': [
2,
0,
'never',
['sentence-case', 'start-case', 'pascal-case', 'upper-case'],
],
'subject-empty': [2, 'never'],
'body-leading-blank': [1, 'always'],
'body-max-line-length': [2, 'always', 100],
'body-case': [2, 'never', []],
'body-leading-blank': [2, 'always'],
'body-max-line-length': [2, 'always', 200],
'body-case': [0, 'never', []],
'footer-leading-blank': [1, 'always'],
'footer-max-line-length': [2, 'always', 100]