-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy path.commitlintrc
86 lines (75 loc) · 3.34 KB
/
.commitlintrc
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
extends: ['@commitlint/config-conventional']
rules:
# Ref. https://commitlint.js.org/#/reference-rules
body-full-stop: [0, always, '.']
body-leading-blank: [2, always]
body-empty: [0, never]
body-max-length: [0, always, Infinity]
body-max-line-length: [2, always, 100]
body-min-length: [0, always, Infinity]
body-case: [2, always, 'sentence-case']
footer-leading-blank: [2, always]
footer-empty: [0, never]
footer-max-length: [0, always, Infinity]
footer-max-line-length: [2, always, 100]
footer-min-length: [0, always, 0]
header-case: [0, always, 'lower-case']
header-full-stop: [2, never, '.']
header-max-length: [2, always, 100]
header-min-length: [0, always, 0]
references-empty: [0, never]
scope-enum: [2, always,
[
'core',
'docker',
'swipe-exception',
]
]
scope-case: [2, always, 'lower-case']
scope-empty: [0, never]
scope-max-length: [0, always, Infinity]
scope-min-length: [0, always, 0]
subject-case: [2, never,
[
'upper-case',
'camel-case',
'pascal-case',
'sentence-case',
'snake-case',
'start-case'
]
]
subject-empty: [2, never]
subject-full-stop: [2, never, '.']
subject-max-length: [0, always, Infinity]
subject-min-length: [0, always, 0]
subject-exclamation-mark: [2, never]
type-enum: [2, always,
[
'build',
'chore',
'ci',
'docs',
'feat',
'fix',
'perf',
'refactor',
'revert',
'style',
'test',
]
]
type-case: [2, always, 'lower-case']
type-empty: [2, never]
type-max-length: [0, always, Infinity]
type-min-length: [0, always, 0]
signed-off-by: [0, never]
trailer-exists: [0, never]
prompt:
# Ref. https://commitlint.js.org/#/reference-prompt?id=prompt
settings:
enableMultipleScopes: true
scopeEnumSeparator: ','
questions:
issues:
description: 'Add issue references (e.g., "Ref. #123", "See URL").'