mirror of
https://github.com/AppFlowy-IO/AppFlowy.git
synced 2025-04-24 22:57:12 -04:00
refactor: change order of rules
rules are now in order of a commit message and separated into sections.
This commit is contained in:
parent
441627783b
commit
87cc542275
1 changed files with 12 additions and 8 deletions
|
@ -1,20 +1,24 @@
|
||||||
// module.exports = {extends: ['@commitlint/config-conventional']}
|
// module.exports = {extends: ['@commitlint/config-conventional']}
|
||||||
module.exports = {
|
module.exports = {
|
||||||
rules: {
|
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],
|
'header-max-length': [2, 'always', 100],
|
||||||
|
|
||||||
|
'type-enum': [2, 'always', ['chore', 'ci', 'docs', 'feat', 'fix', 'refactor', 'style', 'test']],
|
||||||
|
'type-empty': [2, 'never'],
|
||||||
|
'type-case': [2, 'always', 'lower-case'],
|
||||||
|
|
||||||
'subject-case': [
|
'subject-case': [
|
||||||
2,
|
2,
|
||||||
'never',
|
'never',
|
||||||
['sentence-case', 'start-case', 'pascal-case', 'upper-case'],
|
['sentence-case', 'start-case', 'pascal-case', 'upper-case'],
|
||||||
],
|
],
|
||||||
'subject-empty': [2, 'never'],
|
'subject-empty': [2, 'never'],
|
||||||
'type-empty': [2, 'never'],
|
|
||||||
'type-case': [2, 'always', 'lower-case'],
|
'body-leading-blank': [1, 'always'],
|
||||||
'body-case': [2, 'never', []]
|
'body-max-line-length': [2, 'always', 100],
|
||||||
|
'body-case': [2, 'never', []],
|
||||||
|
|
||||||
|
'footer-leading-blank': [1, 'always'],
|
||||||
|
'footer-max-line-length': [2, 'always', 100]
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue