-
-
Notifications
You must be signed in to change notification settings - Fork 55
/
commitlint.config.ts
44 lines (44 loc) · 1.2 KB
/
commitlint.config.ts
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
export default {
extends: ['@commitlint/config-conventional', 'cz'],
rules: {
'type-enum': [
2,
'always',
[
'feature',
'feat',
'bug',
'fix',
'ui',
'docs',
'style',
'perf',
'release',
'deploy',
'refactor',
'test',
'chore',
'revert',
'merge',
'build',
],
],
// <type> low case
'type-case': [2, 'always', 'lower-case'],
// <type> cannot empty
'type-empty': [2, 'never'],
// <scope> cannot empty
'scope-empty': [0, 'never'],
// <scope> scope
'scope-case': [0],
// <subject> message commot empty
'subject-empty': [2, 'never'],
// <subject> disable stop char
'subject-full-stop': [0, 'never'],
// <subject> disable subject case
'subject-case': [0, 'never'],
// <body> start with blank
'body-leading-blank': [1, 'always'],
'header-max-length': [0, 'always', 72],
},
};