-
-
Notifications
You must be signed in to change notification settings - Fork 152
/
Copy path.commitlintrc.yml
31 lines (28 loc) · 931 Bytes
/
.commitlintrc.yml
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
# commitlint.config.yml
extends:
- "@commitlint/config-conventional"
rules:
# Basic rules
header-max-length: [2, "always", 72]
body-max-line-length: [2, "always", 100]
# Commit type
type-enum:
- 2
- "always"
- [
"feat", # New feature
"enh", # Enhancement of an existing feature
"fix", # Bug fix
"docs", # Documentation changes
"style", # Code formatting, white spaces, etc.
"refactor", # Code refactoring
"perf", # Performance improvement
"test", # Adding or fixing tests
"build", # Changes affecting the build system or external dependencies
"ci", # Changes to CI configuration files and scripts
"chore", # Other changes that don't modify src or test files
"delete", # Deleting unused files
"revert", # Reverting to a previous commit
]
scope-empty: [2, "never"]
subject-empty: [2, "never"]