@vijayhardaha/dev-config 1.0.8 → 1.0.9
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/commitlint/index.js +4 -11
package/package.json
CHANGED
package/src/commitlint/index.js
CHANGED
|
@@ -15,18 +15,11 @@ const config = {
|
|
|
15
15
|
extends: ['@commitlint/config-conventional'],
|
|
16
16
|
|
|
17
17
|
// ---- Rules ----
|
|
18
|
-
// Maximum length for the commit header (first line)
|
|
19
18
|
rules: {
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
//
|
|
23
|
-
'
|
|
24
|
-
|
|
25
|
-
// Commit body must be in sentence case or lower case
|
|
26
|
-
'body-case': [2, 'always', ['sentence-case', 'lower-case']],
|
|
27
|
-
|
|
28
|
-
// Subject case is not enforced (allows flexibility)
|
|
29
|
-
'subject-case': [0],
|
|
19
|
+
// Enforce a maximum header length of 72 characters
|
|
20
|
+
'header-max-length': [2, 'always', 72],
|
|
21
|
+
// Enforce lowercase for the scope of the commit message
|
|
22
|
+
'scope-case': [2, 'always', 'lower-case'],
|
|
30
23
|
},
|
|
31
24
|
};
|
|
32
25
|
|