mirror of
https://github.com/pommee/goaway.git
synced 2026-01-06 05:49:35 -06:00
chore: update commitlint with custom rules
This commit is contained in:
@@ -1 +0,0 @@
|
||||
export default { extends: ["@commitlint/config-conventional"] };
|
||||
54
client/commitlint.config.ts
Normal file
54
client/commitlint.config.ts
Normal file
@@ -0,0 +1,54 @@
|
||||
import {
|
||||
RuleConfigCondition,
|
||||
RuleConfigSeverity,
|
||||
TargetCaseType,
|
||||
UserConfig
|
||||
} from "@commitlint/types";
|
||||
|
||||
const config: UserConfig = {
|
||||
parserPreset: "conventional-changelog-conventionalcommits",
|
||||
rules: {
|
||||
"body-leading-blank": [RuleConfigSeverity.Warning, "always"] as const,
|
||||
"body-max-line-length": [
|
||||
RuleConfigSeverity.Error,
|
||||
"always",
|
||||
999999
|
||||
] as const,
|
||||
"footer-leading-blank": [RuleConfigSeverity.Warning, "always"] as const,
|
||||
"footer-max-line-length": [
|
||||
RuleConfigSeverity.Error,
|
||||
"always",
|
||||
100
|
||||
] as const,
|
||||
"header-max-length": [RuleConfigSeverity.Error, "always", 100] as const,
|
||||
"header-trim": [RuleConfigSeverity.Error, "always"] as const,
|
||||
"subject-case": [
|
||||
RuleConfigSeverity.Error,
|
||||
"never",
|
||||
["sentence-case", "start-case", "pascal-case", "upper-case"]
|
||||
] as [RuleConfigSeverity, RuleConfigCondition, TargetCaseType[]],
|
||||
"subject-empty": [RuleConfigSeverity.Error, "never"] as const,
|
||||
"type-case": [RuleConfigSeverity.Error, "always", "lower-case"] as const,
|
||||
"type-empty": [RuleConfigSeverity.Error, "never"] as const,
|
||||
"type-enum": [
|
||||
RuleConfigSeverity.Error,
|
||||
"always",
|
||||
[
|
||||
"build",
|
||||
"chore",
|
||||
"ci",
|
||||
"docs",
|
||||
"feat",
|
||||
"fix",
|
||||
"perf",
|
||||
"refactor",
|
||||
"revert",
|
||||
"style",
|
||||
"ui",
|
||||
"test"
|
||||
]
|
||||
] as [RuleConfigSeverity, RuleConfigCondition, string[]]
|
||||
}
|
||||
};
|
||||
|
||||
export default config;
|
||||
Reference in New Issue
Block a user