-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcommitlint.config.ts
More file actions
34 lines (32 loc) · 903 Bytes
/
commitlint.config.ts
File metadata and controls
34 lines (32 loc) · 903 Bytes
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
import type { UserConfig } from "@commitlint/types";
import { RuleConfigSeverity } from "@commitlint/types";
const Configuration: UserConfig = {
extends: ["@commitlint/config-conventional"],
formatter: "@commitlint/format",
rules: {
"subject-case": [2, "never", ["upper-case", "pascal-case", "start-case"]],
"header-max-length": [RuleConfigSeverity.Error, "always", 200] as const,
"footer-max-line-length": [RuleConfigSeverity.Error, "always", 200] as const,
"body-max-line-length": [RuleConfigSeverity.Error, "always", 600] as const,
"type-enum": [
2,
"always",
[
"build",
"chore",
"ci",
"docs",
"feat",
"fix",
"perf",
"refactor",
"release", // Added for Lerna releases
"revert",
"style",
"test",
],
],
},
// ...
};
export default Configuration;