Skip to content

Bring projects, wikis, and teams together with AI. AppFlowy is the AI collaborative workspace where you achieve more without losing control of your data. The leading open source Notion alternative.

refactor: change order of rules

MikeWallaceDev87cc54227519
diff --git a/commitlint.config.js b/commitlint.config.js
index 91e40054f0..e6b276957c 100644
--- a/commitlint.config.js
+++ b/commitlint.config.js
@@ -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', ['chore', 'ci', 'docs', 'feat', 'fix', 'refactor', 'style', 'test']],
+ 'type-empty': [2, 'never'],
+ 'type-case': [2, 'always', 'lower-case'],
+
'subject-case': [
2,
'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': [1, 'always'],
+ 'body-max-line-length': [2, 'always', 100],
+ 'body-case': [2, 'never', []],
+
+ 'footer-leading-blank': [1, 'always'],
+ 'footer-max-line-length': [2, 'always', 100]
},
};