1 | const typeEnum = require('@commitlint/config-angular-type-enum');
|
2 |
|
3 | module.exports = {
|
4 | parserPreset: {parserOpts: {headerPattern: /^(\w*)(?:\((.*)\))?!?: (.*)$/}},
|
5 | rules: {
|
6 | 'subject-exclamation-mark': [2, 'never'],
|
7 | 'body-leading-blank': [1, 'always'],
|
8 | 'footer-leading-blank': [1, 'always'],
|
9 | 'header-max-length': [2, 'always', 72],
|
10 | 'scope-case': [2, 'always', 'lower-case'],
|
11 | 'subject-case': [
|
12 | 2,
|
13 | 'never',
|
14 | ['sentence-case', 'start-case', 'pascal-case', 'upper-case'],
|
15 | ],
|
16 | 'subject-empty': [2, 'never'],
|
17 | 'subject-full-stop': [2, 'never', '.'],
|
18 | 'type-case': [2, 'always', 'lower-case'],
|
19 | 'type-empty': [2, 'never'],
|
20 | 'type-enum': typeEnum.rules['type-enum'],
|
21 | },
|
22 | };
|