forked from diegoazh/gmap-vue
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommitlint.config.js
24 lines (23 loc) · 912 Bytes
/
commitlint.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
const {utils: {getPackages}} = require('@commitlint/config-lerna-scopes');
module.exports = {
extends: [
'@commitlint/config-lerna-scopes',
],
rules: {
'type-enum': [2, 'always', ['feat', 'fix', 'docs', 'style', 'refactor', 'perf', 'test', 'build', 'ci', 'chore', 'revert']],
'type-case': [2, 'always', 'lowerCase'],
'type-empty': [2, 'never'],
'scope-enum': async ctx =>
[2, 'always', [...(await getPackages(ctx)), 'root', 'all']],
'scope-case': [2, 'always', 'lowerCase'],
'scope-empty': [2, 'never'],
'subject-case': [2, 'always', 'lowerCase'],
'subject-min-length': [2, 'always', 15],
'subject-max-length': [2, 'always', 75],
'header-case': [2, 'always', 'lowerCase'],
'body-leading-blank': [2, 'always'],
'body-max-length': [2, 'always', 300],
'footer-leading-blank': [2, 'always'],
'footer-max-length': [2, 'always', 100],
},
};