-
Notifications
You must be signed in to change notification settings - Fork 24
/
commitlint.config.js
38 lines (37 loc) · 1.07 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
module.exports = {
extends: ['@commitlint/config-conventional'],
rules: {
'scope-enum': () => {
const scopeList = [
'a11y',
'autofocus',
'click-outside',
'clipboard',
'content-loader',
'dateformat',
'deps',
'drag-and-drop-file',
'file-picker',
'grid',
'ng-let',
'nl2br',
'password-indicator',
'password-toggle',
'playground',
'progress-button',
'scroll-into-view',
'secondformat',
'snackbar',
'spinner-button',
'suggest',
'testing',
'virtual-scroll-range-loader',
'virtual-scroll-viewport-resize',
'matformfield-required',
'keyboard-shortcut',
'tree-select',
];
return [2, 'always', scopeList];
}
},
};