-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommitlint.config.ts
72 lines (72 loc) · 1.93 KB
/
commitlint.config.ts
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
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
/** @type {import('cz-git').UserConfig} */
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'type-enum': [2, 'always', ['feat', 'fix', 'update', 'docs', 'style', 'refactor', 'test', 'revert', 'bug', 'build', 'ci', 'chore', 'perf']]
},
prompt: {
useEmoji: true,
types: [
{
value: 'feat',
name: 'feat: A new feature',
emoji: '✨'
},
{
value: 'update',
name: 'update: Config or Function Update',
emoji: '🙌'
},
{
value: 'fix',
name: 'fix: A bug fix',
emoji: '🐛'
},
{
value: 'docs',
name: 'docs: Documentation only changes',
emoji: '📚'
},
{
value: 'style',
name: 'style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)',
emoji: '💎'
},
{
value: 'refactor',
name: 'refactor: A code change that neither fixes a bug nor adds a feature',
emoji: '📦'
},
{
value: 'perf',
name: 'perf: A code change that improves performance',
emoji: '🚀'
},
{
value: 'test',
name: 'test: Adding missing tests or correcting existing tests',
emoji: '🚨'
},
{
value: 'build',
name: 'build: Changes that affect the build system or external dependencies (example scopes: gulp, broccoli, npm)',
emoji: '🛠'
},
{
value: 'ci',
name: 'ci: Changes to our CI configuration files and scripts (example scopes: Travis, Circle, BrowserStack, SauceLabs)',
emoji: '⚙️'
},
{
value: 'chore',
name: 'chore: Other changes that don\'t modify src or test files',
emoji: '♻️'
},
{
value: 'revert',
name: 'revert: Reverts a previous commit',
emoji: '🗑'
}
]
}
}