generated from cloudoperators/repository-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
commitlint.config.js
47 lines (47 loc) · 1.07 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
35
36
37
38
39
40
41
42
43
44
45
46
47
module.exports = {
extends: ["@commitlint/config-conventional"],
rules: {
"type-enum": [
2,
"always",
["build", "chore", "fix", "feat", "merge", "publish", "release", "refactor", "research", "style", "test"],
], // Enforces the type to be one of the specified values
"scope-enum": [
2,
"always",
[
"build",
"communicator",
"config",
"ci",
"core",
"carbon",
"greenhouse",
"deps",
"docs",
"doop",
"example",
"heureka",
"infra",
"juno",
"k8s",
"message-provider",
"main",
"npm",
"oauth",
"supernova",
"template",
"ui",
"url-state-provider",
"version",
/^ISSUE-\d+$/, // Regex pattern for ISSUE-<number>
],
],
"scope-case": [2, "always", "kebab-case"], // Enforces kebab-case
"subject-case": [
2,
"never",
["start-case", "pascal-case", "upper-case"], // Disallows certain cases for the subject
],
},
}