Skip to content

Commit 142c385

Browse files
committed
chore(commitlint): allow breaking change flag without scope case
chore(commitlint): bump line length limit to 120
1 parent 94b6267 commit 142c385

File tree

1 file changed

+20
-5
lines changed

1 file changed

+20
-5
lines changed

.commitlintrc.json

Lines changed: 20 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,23 @@
11
{
2+
"parserPreset": {
3+
"parserOpts": {
4+
"headerPattern": "^([^\\(\\s:!]+)(?:\\(([^)]+)\\))?(!)?: (.+)$",
5+
"headerCorrespondence": [
6+
"type",
7+
"scope",
8+
"breaking",
9+
"subject"
10+
],
11+
"noteKeywords": [
12+
"BREAKING CHANGE",
13+
"BREAKING CHANGES"
14+
]
15+
}
16+
},
217
"rules": {
318
"header-min-length": [2, "always", 12],
4-
"header-max-length": [2, "always", 72],
5-
"footer-max-line-length": [2, "always", 72],
19+
"header-max-length": [2, "always", 120],
20+
"footer-max-line-length": [2, "always", 120],
621
"type-empty": [2, "never"],
722
"type-enum": [2, "always", [
823
"feat",
@@ -17,7 +32,7 @@
1732
"chore",
1833
"revert"
1934
]],
20-
"body-max-line-length": [2, "always", 72],
21-
"scope-case": [2, "always", "lower-case"]
35+
"body-max-line-length": [2, "always", 120],
36+
"scope-case": [0]
2237
}
23-
}
38+
}

0 commit comments

Comments
 (0)