ci: add commitlint (#170)
This commit is contained in:
37
.commitlintrc
Normal file
37
.commitlintrc
Normal file
@@ -0,0 +1,37 @@
|
||||
{
|
||||
"extends": ["@commitlint/config-conventional"],
|
||||
"defaultIgnores": true,
|
||||
"rules": {
|
||||
"body-leading-blank": [1, "always"],
|
||||
"body-max-line-length": [2, "always", 100],
|
||||
"footer-leading-blank": [1, "always"],
|
||||
"footer-max-line-length": [2, "always", 10000],
|
||||
"header-max-length": [2, "always", 200],
|
||||
"subject-case": [
|
||||
2,
|
||||
"never",
|
||||
[]
|
||||
],
|
||||
"subject-empty": [2, "never"],
|
||||
"subject-full-stop": [2, "never", "."],
|
||||
"type-case": [2, "always", "lower-case"],
|
||||
"type-empty": [2, "never"],
|
||||
"type-enum": [
|
||||
2,
|
||||
"always",
|
||||
[
|
||||
"build",
|
||||
"chore",
|
||||
"ci",
|
||||
"docs",
|
||||
"feat",
|
||||
"fix",
|
||||
"perf",
|
||||
"refactor",
|
||||
"revert",
|
||||
"style",
|
||||
"test"
|
||||
]
|
||||
]
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user