-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcommitlint.config.js
More file actions
26 lines (26 loc) · 905 Bytes
/
commitlint.config.js
File metadata and controls
26 lines (26 loc) · 905 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
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [
2,
'always',
[
'feat', // new feature
'fix', // bug fix
'docs', // documentation
'style', // formatting, missing semicolons, etc
'refactor',// code change that neither fixes a bug nor adds a feature
'test', // adding tests
'chore', // updating build tasks, package manager configs, etc
'perf', // performance improvements
'ci' // CI related changes
]
],
'scope-case': [2, 'always', 'lower-case'],
'subject-case': [2, 'always', 'lower-case'],
'subject-min-length': [2, 'always', 10],
'subject-full-stop': [2, 'never', '.'],
'body-leading-blank': [2, 'always'],
'body-max-line-length': [2, 'always', 100]
}
}