This repository was archived by the owner on Dec 14, 2022. It is now read-only.
forked from maisieccino/ucl-assistant-app
-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathcommitlint.config.js
90 lines (90 loc) · 2.55 KB
/
commitlint.config.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
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
module.exports = {
prompt: {
questions: {
type: {
description: `Select the type of change you're committing:`,
enum: {
add: {
description: `Create a capability e.g. feature, test, dependency.`,
title: `add`,
},
bump: {
description: `Increase the version of something e.g. a dependency.`,
title: `bump`,
},
document: {
description: `A change that MUST be only in the documentation, e.g. help files.`,
title: `document`,
},
drop: {
description: `Delete a capability e.g. feature, test, dependency.`,
title: `drop`,
},
fix: {
description: `Fix an issue e.g. bug, typo, accident, misstatement.`,
title: `fix`,
},
make: {
description: `Change the build process, or tools, or infrastructure.`,
title: `make`,
},
optimize: {
description: `A change that MUST be just about performance, e.g. speed up code.`,
title: `optimize`,
},
refactor: {
description: `A change that MUST be just refactoring.`,
title: `refactor`,
},
reformat: {
description: `A change that MUST be just format, e.g. indent line, trim space, etc.`,
title: `reformat`,
},
rephrase: {
description: `A change that MUST be just textual, e.g. edit a comment, doc, etc.`,
title: `rephrase`,
},
start: {
description: `Begin doing something; e.g. enable a toggle, feature flag, etc.`,
title: `start`,
},
stop: {
description: `End doing something; e.g. disable a toggle, feature flag, etc.`,
title: `stop`,
},
},
},
},
},
rules: {
'header-max-length': [2, `always`, 72],
'scope-case': [2, `always`, `lower-case`],
'subject-case': [
2,
`never`,
[`sentence-case`, `start-case`, `pascal-case`, `upper-case`],
],
'subject-empty': [2, `never`],
'subject-full-stop': [2, `never`, `.`],
'type-case': [2, `always`, `lower-case`],
'type-empty': [2, `never`],
'type-enum': [
2,
`always`,
[
`add`,
`drop`,
`fix`,
`bump`,
`make`,
`start`,
`stop`,
`optimize`,
`document`,
`refactor`,
`reformat`,
`rephrase`,
],
],
},
}