-
Notifications
You must be signed in to change notification settings - Fork 10
/
lintush-config.js
58 lines (56 loc) · 1.54 KB
/
lintush-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
/**
* TODO: Edit this code to fit your lint demands:
* For example:
*
* const commitScopes = require("./commitlint.config").rules["scope-enum"][2];
*/
const commitScopes = [
"button",
"checkbox",
"config",
"fonts",
"grid",
"palette",
"web-icons",
"webpack"
];
module.exports = {
body: {
mandatory: false,
question:
"Explain the problem that this commit is solving. Focus on why you are making this change as opposed to how (the code explains that). Are there any side effects or other unintuitive consequences of this change?"
},
bugNumber: {
mandatory: false,
question: "Enter the bug id or click enter"
},
scope: {
choices: commitScopes,
mandatory: false,
question: "What is the scope of the commit?"
},
screenshot: {
mandatory: false,
question:
"If you have a screenshot of the fix, paste the URL here or click enter"
},
subject: {
mandatory: false,
question:
"Commit title - Summarize your changes in 50 characters or less (use imperative mood)"
},
type: {
choices: {
chore: "other changes that don't modify src or test files",
docs: "changes to documentation",
feat: "new feature",
fix: "bug fix",
refactor: "code change that neither fixes a bug nor adds a feature",
revert: "reverts a previous commit",
style: "formatting, missing semi colons, etc; no code change",
test: "adding or refactoring tests; no production code change"
},
mandatory: true,
question: "What it the type of the commit?"
}
};