-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy path.commitlintrc.cjs
More file actions
40 lines (37 loc) · 858 Bytes
/
.commitlintrc.cjs
File metadata and controls
40 lines (37 loc) · 858 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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
/**
* Message: "type(scope): commit message"
* Example: `git commit -m "feat(scope): Removed before you go" -m "[Ticket-123](https://pivotal-link)"`
* @see http://marionebl.github.io/commitlint/
*
* @commitlint/config-conventional
* @see https://github.com/conventional-changelog/commitlint/tree/master/@commitlint/config-conventional
*/
const type = [
'build',
'chore',
'ci',
'docs',
'feat',
'fix',
'perf',
'refactor',
'revert',
'style',
'test'
];
const scope = ['core'];
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'header-max-length': [2, 'always', Infinity],
'type-enum': [2, 'always', type],
'scope-enum': [2, 'always', scope],
'footer-leading-blank': [1, 'never'],
'subject-case': [2, 'always', 'sentence-case']
},
parserPreset: {
parserOpts: {
issuePrefixes: ['Ticket-']
}
}
};