-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommitlint.config.cjs
More file actions
34 lines (34 loc) · 899 Bytes
/
commitlint.config.cjs
File metadata and controls
34 lines (34 loc) · 899 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
// eslint-disable-next-line no-undef
module.exports = {
parserPreset: {
parserOpts: {
headerPattern:
/^(:\w+:) (feat|fix|docs|test|build|perf|style|refactor|chore|ci|raw|cleanup|remove): (.*)$/,
headerCorrespondence: ["ignore", "type", "subject"],
},
},
rules: {
"type-enum": [
2,
"always",
[
"feat",
"fix",
"docs",
"test",
"build",
"perf",
"style",
"refactor",
"chore",
"ci",
"raw",
"cleanup",
"remove",
],
],
"subject-empty": [2, "never"],
"subject-max-length": [2, "always", 72],
},
extends: ["@commitlint/config-conventional"],
};