1+ import {
2+ RuleConfigCondition ,
3+ RuleConfigSeverity ,
4+ TargetCaseType
5+ } from "@commitlint/types"
6+
7+ export default {
8+ rules : {
9+ "body-leading-blank" : [ RuleConfigSeverity . Error , "always" ] as const ,
10+ "body-max-line-length" : [ RuleConfigSeverity . Error , "always" , 100 ] as const ,
11+ "footer-leading-blank" : [ RuleConfigSeverity . Warning , "never" ] as const ,
12+ "footer-max-line-length" : [
13+ RuleConfigSeverity . Error ,
14+ "always" ,
15+ 100 ,
16+ ] as const ,
17+ "header-max-length" : [ RuleConfigSeverity . Error , "always" , 100 ] as const ,
18+ "header-trim" : [ RuleConfigSeverity . Error , "always" ] as const ,
19+ "subject-case" : [
20+ RuleConfigSeverity . Error ,
21+ "never" ,
22+ [ "sentence-case" , "start-case" , "pascal-case" , "upper-case" ] ,
23+ ] as [ RuleConfigSeverity , RuleConfigCondition , TargetCaseType [ ] ] ,
24+ "subject-empty" : [ RuleConfigSeverity . Error , "never" ] as const ,
25+ "subject-full-stop" : [ RuleConfigSeverity . Error , "never" , "." ] as const ,
26+ "type-case" : [ RuleConfigSeverity . Error , "always" , "lower-case" ] as const ,
27+ "type-empty" : [ RuleConfigSeverity . Error , "never" ] as const ,
28+ "type-enum" : [
29+ RuleConfigSeverity . Error ,
30+ "always" ,
31+ [
32+ "build" ,
33+ "chore" ,
34+ "ci" ,
35+ "docs" ,
36+ "feat" ,
37+ "fix" ,
38+ "perf" ,
39+ "refactor" ,
40+ "revert" ,
41+ "style" ,
42+ "test" ,
43+ ] ,
44+ ] satisfies [ RuleConfigSeverity , RuleConfigCondition , string [ ] ] ,
45+ } ,
46+ prompt : { } ,
47+ }
0 commit comments