-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathcommitlint.config.js
More file actions
26 lines (25 loc) · 893 Bytes
/
Copy pathcommitlint.config.js
File metadata and controls
26 lines (25 loc) · 893 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
// level
const OFF = 0;
const WARNING = 1;
const ERROR = 2;
module.exports = {
parserPreset: 'conventional-changelog-conventionalcommits',
rules: {
'body-leading-blank': [WARNING, 'always'],
'body-max-line-length': [ERROR, 'always', 100],
'footer-leading-blank': [WARNING, 'always'],
'footer-max-line-length': [ERROR, 'always', 100],
'header-max-length': [ERROR, 'always', 100],
'scope-case': [ERROR, 'always', 'lower-case'],
'subject-case': [ERROR, 'never', ['sentence-case', 'start-case', 'pascal-case', 'upper-case']],
'subject-empty': [ERROR, 'never'],
'subject-full-stop': [ERROR, 'never', '.'],
'type-case': [ERROR, 'always', 'lower-case'],
'type-empty': [ERROR, 'never'],
'type-enum': [
ERROR,
'always',
['build', 'chore', 'ci', 'docs', 'feat', 'fix', 'perf', 'refactor', 'revert', 'style', 'test'],
],
},
};