Browse Source

fix: put back commintlint config because the server will need it

MikeWallaceDev 2 years ago
parent
commit
db2a273845
1 changed files with 25 additions and 0 deletions
  1. 25 0
      commitlint.config.js

+ 25 - 0
commitlint.config.js

@@ -0,0 +1,25 @@
+// module.exports = {extends: ['@commitlint/config-conventional']}
+module.exports = {
+    rules: {
+        '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': [
+            0,
+            'never',
+            ['sentence-case', 'start-case', 'pascal-case', 'upper-case'],
+        ],
+
+        '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]
+    },
+};
+