-
Notifications
You must be signed in to change notification settings - Fork 24
/
Copy path.commitlintrc.ts
48 lines (47 loc) · 1.66 KB
/
.commitlintrc.ts
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
import {
RuleConfigCondition,
RuleConfigSeverity,
TargetCaseType
} from "@commitlint/types"
export default {
rules: {
"body-leading-blank": [RuleConfigSeverity.Error, "always"] as const,
"body-max-line-length": [RuleConfigSeverity.Error, "always", 100] as const,
"footer-leading-blank": [RuleConfigSeverity.Warning, "never"] as const,
"footer-max-line-length": [
RuleConfigSeverity.Error,
"always",
100,
] as const,
"header-max-length": [RuleConfigSeverity.Error, "always", 100] as const,
"header-trim": [RuleConfigSeverity.Error, "always"] as const,
"subject-case": [
RuleConfigSeverity.Error,
"never",
["sentence-case", "start-case", "pascal-case", "upper-case"],
] as [RuleConfigSeverity, RuleConfigCondition, TargetCaseType[]],
"subject-empty": [RuleConfigSeverity.Error, "never"] as const,
"subject-full-stop": [RuleConfigSeverity.Error, "never", "."] as const,
"type-case": [RuleConfigSeverity.Error, "always", "lower-case"] as const,
"type-empty": [RuleConfigSeverity.Error, "never"] as const,
"type-enum": [
RuleConfigSeverity.Error,
"always",
[
"build",
"chore",
"ci",
"docs",
"feat",
"fix",
"perf",
"refactor",
"revert",
"style",
"test",
"i18n",
],
] satisfies [RuleConfigSeverity, RuleConfigCondition, string[]],
},
prompt: {},
}