Merge pull request #381 from MikeWallaceDev/adjust_commitlint_config

Adjust commitlint config
This commit is contained in:
Nathan.fooo 2022-02-25 13:15:51 +08:00 committed by GitHub
commit 349a8350c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,20 +1,24 @@
// module.exports = {extends: ['@commitlint/config-conventional']}
module.exports = {
rules: {
'type-enum': [2, 'always', ['chore', 'ci', 'docs', 'feat', 'fix', 'refactor', 'style', 'test']],
'body-leading-blank': [1, 'always'],
'body-max-line-length': [2, 'always', 100],
'footer-leading-blank': [1, 'always'],
'footer-max-line-length': [2, 'always', 100],
'header-max-length': [2, 'always', 100],
'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'],
'type-empty': [2, 'never'],
'type-case': [2, 'always', 'lower-case'],
'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]
},
};