-
Notifications
You must be signed in to change notification settings - Fork 16
/
.commitlintrc.js
38 lines (38 loc) · 1.38 KB
/
.commitlintrc.js
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
module.exports = {
rules: {
'type-enum': [2, 'always', ['feat', 'fix', 'style', 'build', 'perf', 'chore', 'ci', 'refactor', 'test', 'docs', 'revert']],
'type-case': [2, 'always', 'lower-case'],
'type-empty': [2, 'never'],
'scope-case': [2, 'always', 'lower-case'],
'subject-empty': [2, 'never'],
'subject-full-stop': [2, 'never', '.'],
'subject-max-length': [2, 'always', 100],
},
prompt: {
messages: {
type: 'Type of change:',
scope: 'Scope (optional):',
customScope: 'New Scope:',
subject: 'Commit Message:',
footer: 'Any ISSUES related to this change:',
},
types: [
{ value: 'feat', name: '✨ feat' },
{ value: 'fix', name: '🐛 fix' },
{ value: 'style', name: '💄 style' },
{ value: 'build', name: '📦️ build' },
{ value: 'perf', name: '⚡️ perf' },
{ value: 'chore', name: '🔨 chore' },
{ value: 'ci', name: '🎡 ci' },
{ value: 'refactor', name: '♻️ refactor' },
{ value: 'test', name: '🌱 test' },
{ value: 'docs', name: '📝 docs' },
{ value: 'revert', name: '⏪️ revert' },
],
scopes: ['deps', 'cli', 'docs', 'ci', 'minor', 'major', 'typo'],
useEmoji: false,
upperCaseSubject: true,
customScopesAlias: 'new',
skipQuestions: ['body', 'breaking', 'footerPrefix', 'confirmCommit'],
},
};