2022-02-05 08:14:15 +00:00
|
|
|
// module.exports = {extends: ['@commitlint/config-conventional']}
|
|
|
|
module.exports = {
|
|
|
|
rules: {
|
|
|
|
'header-max-length': [2, 'always', 100],
|
2022-02-25 01:22:02 +00:00
|
|
|
|
2022-02-25 01:36:18 +00:00
|
|
|
'type-enum': [2, 'always', ['build', 'chore', 'ci', 'docs', 'feat', 'feature', 'fix', 'refactor', 'style', 'test']],
|
2022-02-25 01:22:02 +00:00
|
|
|
'type-empty': [2, 'never'],
|
|
|
|
'type-case': [2, 'always', 'lower-case'],
|
|
|
|
|
2022-02-25 01:36:18 +00:00
|
|
|
'subject-empty': [2, 'never'],
|
2022-02-05 08:14:15 +00:00
|
|
|
'subject-case': [
|
2022-02-25 01:36:18 +00:00
|
|
|
0,
|
2022-02-05 08:14:15 +00:00
|
|
|
'never',
|
|
|
|
['sentence-case', 'start-case', 'pascal-case', 'upper-case'],
|
|
|
|
],
|
2022-02-25 01:22:02 +00:00
|
|
|
|
2022-02-25 01:36:18 +00:00
|
|
|
'body-leading-blank': [2, 'always'],
|
|
|
|
'body-max-line-length': [2, 'always', 200],
|
|
|
|
'body-case': [0, 'never', []],
|
2022-02-25 01:22:02 +00:00
|
|
|
|
|
|
|
'footer-leading-blank': [1, 'always'],
|
|
|
|
'footer-max-line-length': [2, 'always', 100]
|
2022-02-05 08:14:15 +00:00
|
|
|
},
|
|
|
|
};
|