-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommitlint.config.js
More file actions
33 lines (33 loc) · 1.13 KB
/
Copy pathcommitlint.config.js
File metadata and controls
33 lines (33 loc) · 1.13 KB
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
/**
* Commit message rules (Conventional Commits).
*
* The types below are the ones release-please maps to changelog sections in
* release-please-config.json - keep both lists in sync when adding a type.
*
* Bypass for a single commit: `SKIP_SIMPLE_GIT_HOOKS=1 git commit ...`
*/
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [
2,
'always',
[
'feat', // user-visible behavior added
'fix', // user-visible defect corrected
'perf', // faster or lighter, same behavior
'refactor', // internal restructuring, same behavior
'docs', // documentation only
'test', // tests only
'build', // dependencies, packaging, devcontainer
'ci', // workflows and automation
'chore', // housekeeping that touches no runtime source
'revert',
],
],
// Long enough to describe the change, short enough to stay readable in `git log --oneline`.
'header-max-length': [2, 'always', 100],
// Bodies wrap at the same width the rest of the repo uses.
'body-max-line-length': [1, 'always', 140],
},
};