-
Notifications
You must be signed in to change notification settings - Fork 0
/
.commitlintrc.js
31 lines (30 loc) · 1.05 KB
/
.commitlintrc.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
25
26
27
28
29
30
31
const Configuration = {
/*
* Resolve and load @commitlint/config-conventional from node_modules.
* Referenced packages must be installed
*/
extends: ['@commitlint/config-conventional'],
/*
* Any rules defined here will override rules from @commitlint/config-conventional
*/
rules: {
'body-leading-blank': [ 2, 'always' ],
'body-empty': [ 0, 'never' ],
'body-max-length': [ 0, 'always', 150 ],
'body-max-line-length': [ 2, 'always', 72 ],
'footer-leading-blank': [ 2, 'always' ],
'footer-max-line-length': [ 2, 'always', 72 ],
'header-case': [ 2, 'always', 'sentence-case' ],
'header-full-stop': [ 2, 'never', '.' ],
'header-max-length': [ 2, 'always', 50 ],
'header-min-length': [ 2, 'always', 4 ],
'scope-empty': [ 2, 'always' ],
'subject-empty': [ 2, 'always' ],
'type-empty': [ 2, 'always' ]
},
/*
* Functions that return true if commitlint should ignore the given message.
*/
ignores: [(commit) => (/^Bump (.*) from (.*) to (.*)/).test(commit)],
};
module.exports = Configuration;