chore: add commitlint

This commit is contained in:
2023-02-16 22:11:44 +08:00
parent 7b33d17118
commit e17f43ecac
4 changed files with 840 additions and 1 deletions

21
.commitlintrc Normal file
View File

@ -0,0 +1,21 @@
{
"extends": [
"@commitlint/config-conventional"
],
"rules": {
"type-enum": [
2,
"always",
[
"feat",
"fix",
"refactor",
"test",
"build",
"docs",
"chore"
]
],
"subject-max-length": [1,"always", 150]
}
}