-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.commitlintrc.js
51 lines (51 loc) · 1.05 KB
/
.commitlintrc.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
module.exports = {
extents: ["cz", "@commitlint/config-conventional"],
rules: {
"body-leading-blank": [2, "always"],
"footer-leading-blank": [2, "always"],
"header-max-length": [2, "always", 71],
"scope-case": [
2,
"never",
["sentence-case", "start-case", "pascal-case", "upper-case"],
],
"subject-case": [
1,
"never",
["sentence-case", "start-case", "pascal-case", "upper-case"],
],
"subject-empty": [1, "always"],
"subject-full-stop": [1, "always", "."],
"type-case": [2, "always", "lower-case"],
"type-empty": [2, "never"],
"type-enum": [
2,
"always",
[
"init",
"feat",
"fix",
"chore",
"docs",
"perf",
"ui",
"ci",
"fix-ci",
"test",
"refactor",
"deploy",
"style",
"workspace",
"i18n",
"add",
"minus",
"del",
"release",
"example",
"lint",
"clean",
"i18n",
],
],
},
};