-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcommitlint.config.js
More file actions
49 lines (48 loc) · 1.37 KB
/
commitlint.config.js
File metadata and controls
49 lines (48 loc) · 1.37 KB
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
// このファイルは`./server/.pre-commit-config.yaml`で管理する.
module.exports = {
/*
* documentation: https://commitlint.js.org/reference/configuration.html
*/
extends: ['@commitlint/config-conventional'],
rules: {
"subject-case": [
2,
"always",
[
'lower-case', // lower case
'upper-case', // UPPERCASE
'camel-case', // camelCase
'kebab-case', // kebab-case
'pascal-case', // PascalCase
'sentence-case', // Sentence case
'snake-case', // snake_case
'start-case' // Start Case
]
],
// typeのenumを強制
'type-enum': [
2, // この数字何?
'always',
[
// type(scope): <更新内容>
// 上の`type`の部分の許可する文字列
// CONTRIBUTING.mdに書いてあるものに従う
"feat",
"update",
"fix",
"docs",
"ci",
"refactor",
"chore"
]
],
"type-case": [
2,
"always",
[
"lower-case",
"pascal-case"
]
],
},
};