forked from react-ssutil/react-ssutil
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommitlint.config.ts
More file actions
30 lines (28 loc) · 759 Bytes
/
Copy pathcommitlint.config.ts
File metadata and controls
30 lines (28 loc) · 759 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
import type { UserConfig } from "@commitlint/types";
const config: UserConfig = {
extends: ["@commitlint/config-conventional"],
rules: {
"type-enum": [
2,
"always",
[
"feat", // new feature
"fix", // bug fix
"perf", // performance improvement
"refactor", // refactoring
"docs", // documentation
"test", // tests
"chore", // config, build
"ci", // CI/CD
"revert", // revert commit
],
],
"subject-case": [0],
"subject-empty": [2, "never"],
"subject-full-stop": [2, "never", "."],
"header-max-length": [2, "always", 72],
"body-leading-blank": [1, "always"],
"footer-leading-blank": [1, "always"],
},
};
export default config;