-
Notifications
You must be signed in to change notification settings - Fork 0
/
commitlint.config.js
36 lines (35 loc) · 1.04 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
module.exports = {
extends: ["@commitlint/config-conventional"],
rules: {
"type-enum": [
2,
"always",
[
"build",
"chore",
"ci",
"deps",
"docs",
"feat",
"fix",
"perf",
"refactor",
"revert",
"style",
"test",
],
],
},
};
// build: Changes that affect the build system or external dependencies.
// chore: Minor changes that affect neither code nor tests, such as a change in .gitignore.
// ci: Changes to continuous integration configuration files and scripts.
// deps: Changes to project dependencies.
// docs: Changes to documentation only.
// feat: A new feature.
// fix: A bug fix.
// perf: Code changes to improve performance.
// refactor: Code refactoring that neither fixes bugs nor adds functionality.
// revert: Undo a previous commit.
// style: Changes that do not affect the meaning of the code (spaces, formatting, etc.).
// test: Add or modify tests.