forked from xkjyeah/vue-google-maps
-
Notifications
You must be signed in to change notification settings - Fork 52
Expand file tree
/
Copy pathcommitlint.config.js
More file actions
52 lines (47 loc) · 1.49 KB
/
Copy pathcommitlint.config.js
File metadata and controls
52 lines (47 loc) · 1.49 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
module.exports = {
rules: {
// --- Type ---
"type-enum": [
2,
"always",
[
"feat",
"fix",
"docs",
"style",
"refactor",
"perf",
"test",
"build",
"ci",
"chore",
"revert",
],
],
"type-case": [2, "always", "lower-case"],
"type-empty": [2, "never"],
// --- Scope (required in this repo) ---
"scope-enum": [2, "always", ["v2", "v3", "next", "docs", "root", "all"]],
"scope-case": [2, "always", "lower-case"],
"scope-empty": [2, "never"],
// --- Subject ---
"subject-case": [2, "always", "lower-case"],
"subject-empty": [2, "never"],
"subject-full-stop": [2, "never", "."],
"subject-min-length": [2, "always", 15],
// --- Header (type(scope): subject combined) ---
"header-max-length": [2, "always", 100],
"header-trim": [2, "always"],
// --- Body ---
// Downgraded to warning (1): the rule uses strict empty-string equality,
// which fails when editors insert whitespace-only blank lines.
"body-leading-blank": [1, "always"],
// Per-line limit (replaces the fragile total body-max-length).
"body-max-line-length": [2, "always", 200],
// --- Footer ---
// Same reasoning as body-leading-blank: warning to survive editor whitespace.
"footer-leading-blank": [1, "always"],
// Per-line limit (replaces footer-max-length: 300 which blocked long refs).
"footer-max-line-length": [2, "always", 200],
},
};