-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommitlint.config.js
More file actions
35 lines (34 loc) · 1.03 KB
/
Copy pathcommitlint.config.js
File metadata and controls
35 lines (34 loc) · 1.03 KB
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
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
// Traceability: References must not be empty
'references-empty': [2, 'never'],
// Traceability: References must use strict 'Refs: #ID' or 'Closes: #ID' format if possible (commitlint native check is loose, we enforce presence)
// Type Enumeration (Governance)
'type-enum': [
2,
'always',
[
'feat',
'fix',
'docs',
'style',
'refactor',
'perf',
'test',
'build',
'ci',
'chore',
'revert',
],
],
// Readability: Allow longer body lines (default is 100)
'body-max-line-length': [2, 'always', 255],
},
parserPreset: {
parserOpts: {
issuePrefixes: ['#'],
referenceActions: ['refs', 'closes', 'Refs', 'Closes', 'ref', 'close'],
},
},
};