forked from BitGo/BitGoJS
-
Notifications
You must be signed in to change notification settings - Fork 0
/
commitlint.config.js
62 lines (61 loc) · 1.28 KB
/
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
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
55
56
57
58
59
60
61
62
const { readdir } = require('fs').promises;
module.exports = {
extends: ['@commitlint/config-conventional'],
ignores: [
(commit) => /^Merge commit '[a-f0-9]{40}'$/m.test(commit),
(commit) => /^chore\(root\): publish modules/m.test(commit),
(commit) => commit.includes('Signed-off-by: dependabot[bot] <[email protected]>'),
],
rules: {
'scope-enum': async () => [2, 'always', (await readdir('modules')).concat('root', 'deps')],
'footer-max-line-length': [0, 'always', Infinity],
'references-empty': [2, 'never'],
},
parserPreset: {
parserOpts: {
issuePrefixes: [
'BG-',
'BMF-',
'BOS-',
'BT-',
'BTC-',
'CE-',
'CLEX-',
'COPS-',
'CP-',
'CR-',
'CS-',
'DES-',
'DO-',
'DOS-',
'DX-',
'EA-',
'ERC20-',
'FAC-',
'GRC-',
'HSM-',
'INC-',
'IR-',
'IS-',
'ITHD-',
'ITOPS-',
'MD-',
'PB-',
'POL-',
'PX-',
'QA-',
'RA-',
'SO-',
'SC-',
'ST-',
'STLX-',
'TRUST-',
'VL-',
'WIN-',
'WP-',
'COIN-',
'#', // Prefix used by GitHub issues
],
},
},
};