-
Notifications
You must be signed in to change notification settings - Fork 68
/
.commitlintrc.yml
78 lines (71 loc) · 1.68 KB
/
.commitlintrc.yml
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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
# Git Commit Message Convention
# - follow: https://github.com/vuejs/vue/blob/dev/.github/COMMIT_CONVENTION.md
# - tool: https://commitlint.js.org/#/concepts-commit-conventions
#
# ```
# <type>(<scope?>): <subject>
# <BLANK LINE>
# <body?>
# <BLANK LINE>
# <footer?>
# ```
extends:
# https://github.com/conventional-changelog/commitlint/tree/master/%40commitlint/config-conventional
- '@commitlint/config-conventional'
# # https://commitlint.js.org/#/reference-rules
rules:
# https://commitlint.js.org/#/reference-rules?id=type-enum
type-enum:
- 2 # error
- always
- - build
- chore
- ci
- docs
- feat
- fix
- perf
- refactor
- revert
- style
- test
- polish
- hotfix
- release
# work in progress
- WIP
# https://commitlint.js.org/reference/rules.html#type-case
type-case:
- 2 # error
- always
- - lower-case
- upper-case
# https://commitlint.js.org/#/reference-rules?id=scope-case
scope-case:
- 2 # error
- always
- - lower-case
- upper-case
- kebab-case
- pascal-case
- start-case
# https://commitlint.js.org/#/reference-rules?id=subject-case
subject-case:
- 1 # warning
- always
- - lower-case
- sentence-case
- start-case
# https://commitlint.js.org/#/reference-rules?id=header-max-length
header-max-length:
- 2 # error
- always
- 120
# https://commitlint.js.org/#/reference-rules?id=footer-leading-blank
footer-leading-blank:
- 2 # error
- always
# https://commitlint.js.org/#/reference-rules?id=body-leading-blank
body-leading-blank:
- 2 # error
- always