@commitlint/types
Advanced tools
+10
-2
@@ -46,2 +46,3 @@ import type { Commit } from "conventional-commits-parser"; | ||
| export type EnumRuleConfig<V = RuleConfigQuality.User> = RuleConfig<V, string[]>; | ||
| export type ObjectRuleConfig<V = RuleConfigQuality.User, T = Record<string, unknown>> = RuleConfig<V, T>; | ||
| export type RulesConfig<V = RuleConfigQuality.User> = { | ||
@@ -67,5 +68,12 @@ "body-case": CaseRuleConfig<V>; | ||
| "references-empty": RuleConfig<V>; | ||
| "scope-case": CaseRuleConfig<V>; | ||
| "scope-case": CaseRuleConfig<V> | ObjectRuleConfig<V, { | ||
| cases: TargetCaseType[]; | ||
| delimiters?: string[]; | ||
| }>; | ||
| "scope-delimiter-style": EnumRuleConfig<V>; | ||
| "scope-empty": RuleConfig<V>; | ||
| "scope-enum": EnumRuleConfig<V>; | ||
| "scope-enum": EnumRuleConfig<V> | ObjectRuleConfig<V, { | ||
| scopes: string[]; | ||
| delimiters?: string[]; | ||
| }>; | ||
| "scope-max-length": LengthRuleConfig<V>; | ||
@@ -72,0 +80,0 @@ "scope-min-length": LengthRuleConfig<V>; |
+2
-2
| { | ||
| "name": "@commitlint/types", | ||
| "type": "module", | ||
| "version": "20.2.0", | ||
| "version": "20.3.1", | ||
| "description": "Shared types for commitlint packages", | ||
@@ -38,3 +38,3 @@ "main": "lib/index.js", | ||
| }, | ||
| "gitHead": "ddad9b44d6dd98b983f338bee1ff44dfa9dc1ab1" | ||
| "gitHead": "be3a280aeadef5afa8ec83dbbe794ab2f72b9c3a" | ||
| } |
Sorry, the diff of this file is not supported yet
24978
3.01%284
2.9%