-
-
Notifications
You must be signed in to change notification settings - Fork 196
Expand file tree
/
Copy pathcommitlint.config.cjs
More file actions
34 lines (30 loc) · 850 Bytes
/
commitlint.config.cjs
File metadata and controls
34 lines (30 loc) · 850 Bytes
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
module.exports = {
extends: [],
rules: {
// Basic message validation
'header-min-length': [2, 'always', 3],
'header-max-length': [2, 'always', 72],
'header-case': [2, 'always', 'sentence-case'],
'header-full-stop': [2, 'never', '.'],
// Allow empty body and subject parsing issues
'subject-empty': [0],
'subject-case': [0],
'subject-full-stop': [0],
// Disable all conventional commit requirements
'type-empty': [0],
'type-enum': [0],
'type-case': [0],
'scope-empty': [0],
'scope-case': [0],
// Body rules (if present)
'body-max-line-length': [1, 'always', 100],
'body-leading-blank': [1, 'always']
},
// Parser options to handle simple messages
parserPreset: {
parserOpts: {
headerPattern: /^(.*)$/,
headerCorrespondence: ['subject']
}
}
};