-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.commitlintrc.js
More file actions
46 lines (46 loc) Β· 1.04 KB
/
.commitlintrc.js
File metadata and controls
46 lines (46 loc) Β· 1.04 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
34
35
36
37
38
39
40
41
42
43
44
45
46
module.exports = {
extends: ['@commitlint/config-conventional'],
parserPreset: {
parserOpts: {
headerPattern: /^(.+?\s[\w-]+)(?:\(([^)]+)\))?(!)?:[ ](.*)$/,
headerCorrespondence: ['type', 'scope', 'breaking', 'subject']
}
},
rules: {
'type-enum': [
2,
'always',
[
'β¨ feature',
'π bug',
'π¨ logic',
'π₯ debt',
'π£ repo',
'π ui',
'π§ ux',
'π i18n',
'βΏ accessibility',
'π docs',
'β
spec',
'π¦ deps',
'π env',
'π· ci',
'π build',
'βοΈ config',
'β‘ metrics',
'π security',
'π§ chore',
'βͺ history',
'π branch',
'π¬ experiment'
]
],
'type-case': [0],
'scope-case': [2, 'always', 'lower-case'],
'subject-case': [0],
'subject-empty': [2, 'never'],
'subject-full-stop': [2, 'never'],
'header-max-length': [2, 'always', 72],
'type-empty': [2, 'never']
}
}