-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
54 lines (47 loc) · 1.58 KB
/
index.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
export default {
/**
* The base are the conventional commit definitions
* @see https://github.com/conventional-changelog/commitlint/blob/master/@commitlint/config-conventional/index.js
*/
extends: ['@commitlint/config-conventional'],
/**
* Main documentation of HDNET's HSR-3 (Git Commit Messages)
*/
helpUrl: 'https://hdgroup.atlassian.net/wiki/spaces/OPS/pages/45940834/HSR-3+Git+Commit-Messages',
/**
* Adapting rules for HSR-3
* @see https://commitlint.js.org/#/reference-rules
*/
rules: {
// Do not restrict line length in message body
'body-max-line-length': [0],
// Warn when missing project key is missing, but do not enforce (there may be cases without existing key).
'references-empty': [1, 'never'],
// Scopes with multiple words should be separated consistently
'scope-case': [2, 'always', 'kebab-case'],
// Subjects are sentences and begin uppercase
'subject-case': [2, 'always', ['sentence-case']],
// Subject does not have full stop
'subject-full-stop': [2, 'never', '.'],
// Need of more types like: "dx", "types"
'type-enum': [
2,
'always',
[
'build',
'chore',
'ci',
'docs',
'dx',
'feat',
'fix',
'perf',
'refactor',
'revert',
'style',
'test',
'types',
],
],
},
}