-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommitlint.config.js
More file actions
54 lines (50 loc) · 1.13 KB
/
commitlint.config.js
File metadata and controls
54 lines (50 loc) · 1.13 KB
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
52
53
54
module.exports = {
extends: ["@commitlint/config-conventional"],
rules: {
// Disable case enforcement - allow any case in subject and scope
"subject-case": [0],
"scope-case": [0],
"type-case": [0],
// Disable length restrictions
"header-max-length": [0],
"body-max-line-length": [0],
"footer-max-line-length": [0],
// Make body and footer optional
"body-leading-blank": [1, "always"],
"footer-leading-blank": [1, "always"],
// Allow wide range of commit types (warning only, not error)
"type-enum": [
1,
"always",
[
"feat",
"feature",
"fix",
"docs",
"style",
"refactor",
"perf",
"test",
"chore",
"ci",
"revert",
"build",
"wip",
"merge",
"release",
"hotfix",
"config",
"update",
"add",
"remove",
"change",
"improve",
"cleanup",
],
],
// Disable strict requirements
"type-empty": [1, "never"],
"subject-empty": [1, "never"],
"scope-empty": [0],
},
};