-
-
Notifications
You must be signed in to change notification settings - Fork 8
Expand file tree
/
Copy pathcommitlint.config.mjs
More file actions
23 lines (23 loc) · 802 Bytes
/
commitlint.config.mjs
File metadata and controls
23 lines (23 loc) · 802 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
export default {
parserPreset: 'conventional-changelog-atom',
formatter: '@commitlint/format',
rules: {
"header-max-length": [2, "always", 120],
'subject-empty': [2, 'never'],
'subject-full-stop': [2, 'never', '.'],
'subject-max-length': [2, 'always', 120],
'subject-min-length': [2, 'always', 10],
'type-enum': [2, 'always', ['ci', 'docs', 'feature', 'fix', 'improvement', 'perf', 'refactor', 'revert', 'style', 'test', 'unit-test', 'build']],
'type-empty': [2, 'never'],
'scope-empty': [2, 'never'],
'scope-min-length': [2, 'always', 3],
'body-min-length': [2, 'always', 15],
'body-max-line-length': [2, 'always', 120],
'body-leading-blank': [2, 'always'],
},
parserPreset: {
parserOpts: {
noteKeywords: ['\\[\\d+\\]']
}
}
};