Skip to content

Commit e35ba3f

Browse files
authored
Fix rules configuration key types (#2541)
* fix(rules): set body-full-stop rule config value type * fix(rules): fix header-full-stop rule config value type * fix(rules): fix signed-off-by rule config value type
1 parent 99282b5 commit e35ba3f

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

@commitlint/types/src/rules.ts

+3-3
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ export type EnumRuleConfig<V = RuleConfigQuality.User> = RuleConfig<
9191
export type RulesConfig<V = RuleConfigQuality.User> = {
9292
'body-case': CaseRuleConfig<V>;
9393
'body-empty': RuleConfig<V>;
94-
'body-full-stop': RuleConfig<V>;
94+
'body-full-stop': RuleConfig<V, string>;
9595
'body-leading-blank': RuleConfig<V>;
9696
'body-max-length': LengthRuleConfig<V>;
9797
'body-max-line-length': LengthRuleConfig<V>;
@@ -102,7 +102,7 @@ export type RulesConfig<V = RuleConfigQuality.User> = {
102102
'footer-max-line-length': LengthRuleConfig<V>;
103103
'footer-min-length': LengthRuleConfig<V>;
104104
'header-case': CaseRuleConfig<V>;
105-
'header-full-stop': RuleConfig<V>;
105+
'header-full-stop': RuleConfig<V, string>;
106106
'header-max-length': LengthRuleConfig<V>;
107107
'header-min-length': LengthRuleConfig<V>;
108108
'references-empty': RuleConfig<V>;
@@ -111,7 +111,7 @@ export type RulesConfig<V = RuleConfigQuality.User> = {
111111
'scope-enum': EnumRuleConfig<V>;
112112
'scope-max-length': LengthRuleConfig<V>;
113113
'scope-min-length': LengthRuleConfig<V>;
114-
'signed-off-by': RuleConfig<V>;
114+
'signed-off-by': RuleConfig<V, string>;
115115
'subject-case': CaseRuleConfig<V>;
116116
'subject-empty': RuleConfig<V>;
117117
'subject-full-stop': RuleConfig<V, string>;

0 commit comments

Comments
 (0)