generated from wrappid/wrappid-module
-
Notifications
You must be signed in to change notification settings - Fork 0
/
commitlint.config.js
42 lines (38 loc) · 975 Bytes
/
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
/**
* List of commit types allowed in commit messages.
*
* @author Ananta Kumar Ghosh <ananta@anantakumarghosh.me>
*/
const types = [
"build",
"chore",
"ci",
"docs",
"feat",
"fix",
"perf",
"refactor",
"revert",
"style",
"test"
];
/**
* List of commit scopes allowed in commit messages.
*/
const scopes = ["config", "core", "global", "utils"];
// eslint-disable-next-line no-undef
module.exports = {
extends: ["@commitlint/config-conventional"],
parserPreset: { parserOpts: { issuePrefixes: ["#"] } },
rules: {
"body-leading-blank" : [2, "always"],
"body-max-line-length": [2, "always", 250],
"footer-empty" : [2, "never"],
"footer-leading-blank": [2, "always"],
"references-empty" : [2, "never"],
"scope-case" : [2, "always", "camel-case"],
"scope-empty" : [0, "always"],
"scope-enum" : [2, "always", scopes],
"type-enum" : [2, "always", types],
},
};