-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.commitlintrc.yml
41 lines (40 loc) · 1002 Bytes
/
.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
#
# An explanation of this commitlint configuration is provided in ./README.md.
#
# More information on how to configure commitlint rules can be found at
# https://commitlint.js.org/reference/rules-configuration.html
# https://commitlint.js.org/reference/rules.html
#
---
# Start from a basic set of rules defined here:
# https://github.com/conventional-changelog/commitlint/tree/master/@commitlint/config-conventional
extends:
- "@commitlint/config-conventional"
# Override type-enum to just use types that are relevant to this project, and
# enforce formatting of first line of commit message to look like
#
# <type>: Description starting with a capital letter
#
rules:
type-enum:
- 2
- always
- - build
- chore
- ci
- docs
- feat
- fix
- refactor
- revert
- test
scope-empty:
- 2
- always
# Require initial capital letter
subject-case:
- 2
- always
- - sentence-case
- start-case
- upper-case