-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommitlint.config.js
More file actions
28 lines (28 loc) · 1000 Bytes
/
commitlint.config.js
File metadata and controls
28 lines (28 loc) · 1000 Bytes
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
export default {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [
2,
'always',
[
'feat', // New feature
'fix', // Bug fix
'docs', // Documentation only changes
'style', // Changes that don't affect code meaning
'refactor', // Code change that neither fixes bug nor adds feature
'perf', // Performance improvement
'test', // Adding missing tests
'chore', // Changes to build process or auxiliary tools
'revert', // Reverts a previous commit
'ci', // CI configuration changes
'build' // Build system changes
]
],
'subject-case': [2, 'always', 'lower-case'],
'subject-full-stop': [2, 'never', '.'],
'header-max-length': [2, 'always', 200],
'body-leading-blank': [2, 'always'],
'body-max-line-length': [0, 'always', 100], // Disabled for release notes
'footer-leading-blank': [2, 'always']
}
};