-
Notifications
You must be signed in to change notification settings - Fork 38
/
Copy path.commitlintrc.js
48 lines (48 loc) · 1.15 KB
/
.commitlintrc.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
48
module.exports = {
extends: ["@commitlint/config-conventional"],
rules: {
"type-enum": [
2,
"always",
[
// Changes that affect the build system or dependency-only changes
"build",
// Changes to CI workflows
"ci",
// Documentation-only changes
"docs",
// A new feature
"feat",
//A bug fix
"fix",
// A code change that improves performance
"perf",
// A code change that neither fixes a bug nor adds a feature
"refactor",
// A commit that reverts a previous commit
"revert",
// Changes that do not affect the meaning of the code
"style",
// Adding missing tests or correcting existing tests
"test",
],
],
"scope-enum": [
2,
"always",
[
// Dependency-related changes
"deps",
// ESLint-related changes
"eslint",
// Prettier-related changes
"prettier",
// TypeScript-related changes
"typescript",
// Go-related changes
"golang",
],
],
"scope-empty": [1, "never"],
},
};