-
Notifications
You must be signed in to change notification settings - Fork 0
/
commitlint.config.js
34 lines (34 loc) · 1.03 KB
/
commitlint.config.js
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
module.exports = {
rules: {
"header-max-length": [2, "always", 72], // GitHub's limit, GitLab's is 1 KiB
"type-empty": [2, "never"],
"type-enum": [
2,
"always",
[
"feat",
"fix",
"refac",
"improve",
"test",
"chore",
"docs",
"ci"
],
],
"scope-case": [2, "always", ["lower-case", "kebab-case"]],
"scope-empty": [2, "never"],
"subject-empty": [2, "never"],
"subject-case": [1, "always", ["lower-case"]],
"subject-full-stop": [2, "never"],
"body-empty": [1, "never"],
"body-leading-blank": [2, "always"],
"body-case": [2, "always", ["sentence-case"]],
"body-full-stop": [2, "always", "."],
"body-max-line-length": [2, "always", 70],
"footer-max-line-length": [2, "always", 70],
},
ignores: [
(commit) => commit.includes("fixup"),
],
};