-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcommitlint.config.cjs
More file actions
47 lines (45 loc) · 1.1 KB
/
commitlint.config.cjs
File metadata and controls
47 lines (45 loc) · 1.1 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
47
module.exports = {
parserPreset: {
name: 'conventional-changelog-conventionalcommits',
parserOpts: {
headerPattern:
/^(✨|🔨|♻️|🐛|🚑️|💄|🎨|🔧|✏️|📝|💬|📦️|🔥|🩹|✅|🔀|💚|🌐|🚀|🔒️|⬆️|⬇️|🚧|💡|🤔|👷|🍻)\s([A-Z][a-z]*)(?:\((.*)\))?!?: (.*)$/,
headerCorrespondence: ['emoji', 'type', 'scope', 'subject'],
referenceActions: null,
issuePrefixes: ['#'],
},
},
extends: ['gitmoji', '@commitlint/config-conventional'],
rules: {
'type-case': [2, 'always', 'pascal-case'],
'type-enum': [
2,
'always',
[
'Feat',
'Fix',
'Refactor',
'Bug',
'Hotfix',
'Ui',
'Style',
'Config',
'Typo',
'Docs',
'Comment',
'Package',
'Remove',
'Chore',
'Test',
'Merge',
'Ci',
'Perf',
'Revert',
],
],
'subject-empty': [2, 'never'],
'header-full-stop': [2, 'never', '.'],
'start-with-gitmoji': [2, 'always'],
'subject-case': [0],
},
};