forked from vmware-clarity/core
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.commitlintrc.js
59 lines (58 loc) · 1.85 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
/*
* Copyright (c) 2016-2023 VMware, Inc. All Rights Reserved.
* This software is released under MIT license.
* The full license information can be found in LICENSE in the root directory of this project.
*/
module.exports = {
rules: {
'body-empty': [0, 'never'],
'body-leading-blank': [2, 'always'],
'footer-leading-blank': [2, 'always'],
'subject-case': [2, 'always', 'lower-case'],
'subject-empty': [2, 'never'],
'subject-exclamation-mark': [2, 'never'],
'subject-full-stop': [2, 'never', '.'],
'subject-max-length': [2, 'always', 100],
'type-empty': [2, 'never'],
'type-enum': [2, 'always', ['chore', 'fix', 'feat']],
},
prompt: {
questions: {
type: {
description: 'Select the TYPE of this change (required)',
enum: {
chore: {
description: '🛠 any change that does not affect consumers',
title: 'chore',
},
fix: {
description: '🐛 any change to an unintended behavior that affects consumers',
title: 'fix',
},
feat: {
description: '✨ any new change in features or behavior that affects consumers',
title: 'feat',
},
},
},
scope: {
description: 'Select the SCOPE of this change (optional)',
},
subject: {
description: 'Finish this SHORT sentence (required): "Applying this commit will..."',
},
body: {
description: 'Provide a LONGER description of the change (optional):',
},
isBreaking: {
description: 'Are there any breaking changes?',
},
breakingBody: {
description: 'A BREAKING CHANGE commit requires a body. Provide a LONGER description of the change:',
},
breaking: {
description: 'Describe the breaking changes:',
},
},
},
};