-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommitlint.config.js
More file actions
39 lines (38 loc) · 957 Bytes
/
commitlint.config.js
File metadata and controls
39 lines (38 loc) · 957 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
// -----------------------------------------------------------------------------
// Exports
// -----------------------------------------------------------------------------
export default {
// config-conventional is based on Conventional Commit:
// https://conventionalcommits.org/
extends: [`@commitlint/config-conventional`],
rules: {
'type-enum': [
2,
`always`,
[
`build`,
`ci`,
`chore`,
`content`,
`debug`,
`deps`,
`docs`,
`feat`,
`fix`,
`hotfix`,
`merge`,
`perf`,
`refactor`,
`revert`,
`style`,
`test`,
],
],
// Scope can be any case.
'scope-case': [0, `always`],
// Subject should be sentence case.
'subject-case': [2, `always`, `sentence-case`],
'body-max-line-length': [0, `always`, `Infinity`],
'footer-max-line-length': [0, `always`, `Infinity`],
},
}