ci: 添加自动化工具提升项目质量
This commit is contained in:
41
.commitlintrc.json
Normal file
41
.commitlintrc.json
Normal file
@@ -0,0 +1,41 @@
|
||||
{
|
||||
"extends": ["@commitlint/config-conventional"],
|
||||
"rules": {
|
||||
"type-enum": [
|
||||
2,
|
||||
"always",
|
||||
[
|
||||
"feat",
|
||||
"fix",
|
||||
"docs",
|
||||
"style",
|
||||
"refactor",
|
||||
"perf",
|
||||
"test",
|
||||
"build",
|
||||
"ci",
|
||||
"chore",
|
||||
"revert"
|
||||
]
|
||||
],
|
||||
"scope-enum": [
|
||||
2,
|
||||
"always",
|
||||
[
|
||||
"core",
|
||||
"math",
|
||||
"network-client",
|
||||
"network-server",
|
||||
"network-shared",
|
||||
"editor",
|
||||
"docs",
|
||||
"ci",
|
||||
"deps"
|
||||
]
|
||||
],
|
||||
"scope-empty": [1, "never"],
|
||||
"subject-empty": [2, "never"],
|
||||
"subject-case": [0],
|
||||
"header-max-length": [2, "always", 100]
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user