-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcommitlint.config.js
46 lines (46 loc) · 1.06 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
export default {
// NOTE: we follow the Conventional Commits specification
// view full specification on https://www.conventionalcommits.org/en/v1.0.0
extends: ['@commitlint/config-conventional'],
rules: {
// types declared in Conventional Commits specification & @commitlint/config-conventional
// see: https://www.conventionalcommits.org/en/v1.0.0/#summary
'type-enum': [
2,
'always',
[
'build',
'chore',
'ci',
'docs',
'feat',
'fix',
'perf',
'refactor',
'revert',
'style',
'test',
],
],
'scope-enum': [
2,
'always',
// scopes
// see: https://www.conventionalcommits.org/en/v1.0.0/#specification
[
// folder name in src/
'core',
'utils',
// component names
// add component name here when adding new component
'button',
'icon',
'icon-button',
'page',
'ripple',
],
],
'body-case': [0],
'subject-case': [0],
},
};