forked from scylladb/scylla-cluster-tests
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommitlint.config.js
More file actions
26 lines (26 loc) · 859 Bytes
/
commitlint.config.js
File metadata and controls
26 lines (26 loc) · 859 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
module.exports = {
rules: {
// Header
"header-max-length": [2, "always", 100],
// Subject
'subject-empty': [2, 'never'],
'subject-full-stop': [2, 'never', '.'],
'subject-max-length': [2, 'always', 120],
'subject-min-length': [2, 'always', 10],
// Type
'type-enum': [2,'always',['ci','docs','feature','fix','improvement','perf','refactor','revert','style','test', 'unit-test', 'build']],
'type-empty': [2, 'never'],
// Scope
'scope-empty': [2, 'never'],
'scope-min-length': [2, 'always', 3],
// Body
'body-min-length': [2, 'always', 30],
'body-max-line-length': [2, 'always', 120],
'body-leading-blank': [2, 'always'],
},
parserPreset: {
parserOpts: {
noteKeywords: ['\\[\\d+\\]']
}
}
};