ci: 添加自动化工具提升项目质量

This commit is contained in:
YHH
2025-10-18 22:32:39 +08:00
parent 6b1e6c6fdc
commit 2df501ec07
10 changed files with 472 additions and 0 deletions

41
.commitlintrc.json Normal file
View 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]
}
}