-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathcommitlint.config.cjs
More file actions
29 lines (29 loc) · 915 Bytes
/
commitlint.config.cjs
File metadata and controls
29 lines (29 loc) · 915 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
29
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 isn’t bug or feature
'perf', // performance improvements
'test', // adding/modifying tests
'chore', // maintenance
'revert', // reverting changes
],
],
'scope-case': [2, 'always', 'lower-case'], // enforce lower-case scopes
'subject-case': [
2,
'never',
['sentence-case', 'start-case', 'pascal-case', 'upper-case'],
],
'subject-empty': [2, 'never'], // subject must not be empty
'subject-full-stop': [2, 'never', '.'], // no trailing '.'
'header-max-length': [2, 'always', 72], // keep subject line short
},
};