Browse Source

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
MikeWallaceDev 3 years ago
parent
commit
be3141b08e
1 changed files with 6 additions and 6 deletions
  1. 6 6
      commitlint.config.js

+ 6 - 6
commitlint.config.js

@@ -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]