@commitlint/types 17.0.0 → 17.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/ensure.d.ts +1 -1
- package/lib/ensure.d.ts.map +1 -1
- package/lib/format.d.ts +2 -2
- package/lib/format.d.ts.map +1 -1
- package/lib/is-ignored.d.ts +1 -1
- package/lib/is-ignored.d.ts.map +1 -1
- package/lib/lint.d.ts +1 -1
- package/lib/lint.d.ts.map +1 -1
- package/lib/load.d.ts +2 -2
- package/lib/load.d.ts.map +1 -1
- package/lib/parse.d.ts +1 -1
- package/lib/parse.d.ts.map +1 -1
- package/lib/prompt.d.ts +6 -6
- package/lib/prompt.d.ts.map +1 -1
- package/lib/rules.d.ts +15 -15
- package/lib/rules.d.ts.map +1 -1
- package/package.json +3 -3
- package/CHANGELOG.md +0 -244
package/lib/ensure.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export
|
|
1
|
+
export type TargetCaseType = 'camel-case' | 'kebab-case' | 'snake-case' | 'pascal-case' | 'start-case' | 'upper-case' | 'uppercase' | 'sentence-case' | 'sentencecase' | 'lower-case' | 'lowercase' | 'lowerCase';
|
|
2
2
|
//# sourceMappingURL=ensure.d.ts.map
|
package/lib/ensure.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ensure.d.ts","sourceRoot":"","sources":["../src/ensure.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"ensure.d.ts","sourceRoot":"","sources":["../src/ensure.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,cAAc,GACvB,YAAY,GACZ,YAAY,GACZ,YAAY,GACZ,aAAa,GACb,YAAY,GACZ,YAAY,GACZ,WAAW,GACX,eAAe,GACf,cAAc,GACd,YAAY,GACZ,WAAW,GACX,WAAW,CAAC"}
|
package/lib/format.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as chalk from 'chalk';
|
|
2
2
|
import { QualifiedRules } from './load';
|
|
3
3
|
import { RuleConfigSeverity } from './rules';
|
|
4
|
-
export
|
|
4
|
+
export type Formatter = (report: FormattableReport, options: FormatOptions) => string;
|
|
5
5
|
export interface FormattableProblem {
|
|
6
6
|
level: RuleConfigSeverity;
|
|
7
7
|
name: keyof QualifiedRules;
|
|
@@ -17,7 +17,7 @@ export interface WithInput {
|
|
|
17
17
|
export interface FormattableReport {
|
|
18
18
|
results?: (FormattableResult & WithInput)[];
|
|
19
19
|
}
|
|
20
|
-
export
|
|
20
|
+
export type ChalkColor = typeof chalk.Color | typeof chalk.Modifiers;
|
|
21
21
|
export interface FormatOptions {
|
|
22
22
|
color?: boolean;
|
|
23
23
|
signs?: readonly [string, string, string];
|
package/lib/format.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../src/format.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,cAAc,EAAC,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAC;AAE3C,
|
|
1
|
+
{"version":3,"file":"format.d.ts","sourceRoot":"","sources":["../src/format.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,OAAO,CAAC;AAC/B,OAAO,EAAC,cAAc,EAAC,MAAM,QAAQ,CAAC;AACtC,OAAO,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAC;AAE3C,MAAM,MAAM,SAAS,GAAG,CACvB,MAAM,EAAE,iBAAiB,EACzB,OAAO,EAAE,aAAa,KAClB,MAAM,CAAC;AAEZ,MAAM,WAAW,kBAAkB;IAClC,KAAK,EAAE,kBAAkB,CAAC;IAC1B,IAAI,EAAE,MAAM,cAAc,CAAC;IAC3B,OAAO,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,iBAAiB;IACjC,MAAM,CAAC,EAAE,kBAAkB,EAAE,CAAC;IAC9B,QAAQ,CAAC,EAAE,kBAAkB,EAAE,CAAC;CAChC;AAED,MAAM,WAAW,SAAS;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,iBAAiB;IACjC,OAAO,CAAC,EAAE,CAAC,iBAAiB,GAAG,SAAS,CAAC,EAAE,CAAC;CAC5C;AAED,MAAM,MAAM,UAAU,GAAG,OAAO,KAAK,CAAC,KAAK,GAAG,OAAO,KAAK,CAAC,SAAS,CAAC;AAErE,MAAM,WAAW,aAAa;IAC7B,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,KAAK,CAAC,EAAE,SAAS,CAAC,MAAM,EAAE,MAAM,EAAE,MAAM,CAAC,CAAC;IAC1C,MAAM,CAAC,EAAE,SAAS,CAAC,UAAU,EAAE,UAAU,EAAE,UAAU,CAAC,CAAC;IACvD,OAAO,CAAC,EAAE,OAAO,CAAC;IAClB,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB"}
|
package/lib/is-ignored.d.ts
CHANGED
package/lib/is-ignored.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"is-ignored.d.ts","sourceRoot":"","sources":["../src/is-ignored.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"is-ignored.d.ts","sourceRoot":"","sources":["../src/is-ignored.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,OAAO,GAAG,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC;AAElD,MAAM,WAAW,gBAAgB;IAChC,OAAO,CAAC,EAAE,OAAO,EAAE,CAAC;IACpB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACnB"}
|
package/lib/lint.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { IsIgnoredOptions } from './is-ignored';
|
|
|
2
2
|
import { PluginRecords } from './load';
|
|
3
3
|
import { ParserOptions } from './parse';
|
|
4
4
|
import { RuleConfigSeverity, RuleConfigTuple } from './rules';
|
|
5
|
-
export
|
|
5
|
+
export type LintRuleConfig = Record<string, Readonly<[RuleConfigSeverity.Disabled]> | RuleConfigTuple<void> | RuleConfigTuple<unknown>>;
|
|
6
6
|
export interface LintOptions {
|
|
7
7
|
/** If it should ignore the default commit messages (defaults to `true`) */
|
|
8
8
|
defaultIgnores?: IsIgnoredOptions['defaults'];
|
package/lib/lint.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../src/lint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAC,aAAa,EAAC,MAAM,QAAQ,CAAC;AACrC,OAAO,EAAC,aAAa,EAAC,MAAM,SAAS,CAAC;AACtC,OAAO,EAAC,kBAAkB,EAAE,eAAe,EAAC,MAAM,SAAS,CAAC;AAE5D,
|
|
1
|
+
{"version":3,"file":"lint.d.ts","sourceRoot":"","sources":["../src/lint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBAAgB,EAAC,MAAM,cAAc,CAAC;AAC9C,OAAO,EAAC,aAAa,EAAC,MAAM,QAAQ,CAAC;AACrC,OAAO,EAAC,aAAa,EAAC,MAAM,SAAS,CAAC;AACtC,OAAO,EAAC,kBAAkB,EAAE,eAAe,EAAC,MAAM,SAAS,CAAC;AAE5D,MAAM,MAAM,cAAc,GAAG,MAAM,CAClC,MAAM,EACJ,QAAQ,CAAC,CAAC,kBAAkB,CAAC,QAAQ,CAAC,CAAC,GACvC,eAAe,CAAC,IAAI,CAAC,GACrB,eAAe,CAAC,OAAO,CAAC,CAC1B,CAAC;AAEF,MAAM,WAAW,WAAW;IAC3B,2EAA2E;IAC3E,cAAc,CAAC,EAAE,gBAAgB,CAAC,UAAU,CAAC,CAAC;IAC9C,gEAAgE;IAChE,OAAO,CAAC,EAAE,gBAAgB,CAAC,SAAS,CAAC,CAAC;IACtC,8DAA8D;IAC9D,UAAU,CAAC,EAAE,aAAa,CAAC;IAE3B,OAAO,CAAC,EAAE,aAAa,CAAC;IACxB,OAAO,CAAC,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,WAAW;IAC3B,mCAAmC;IACnC,KAAK,EAAE,MAAM,CAAC;IACd,+CAA+C;IAC/C,KAAK,EAAE,OAAO,CAAC;IACf,2CAA2C;IAC3C,MAAM,EAAE,eAAe,EAAE,CAAC;IAC1B,6CAA6C;IAC7C,QAAQ,EAAE,eAAe,EAAE,CAAC;CAC5B;AAED,MAAM,WAAW,eAAe;IAC/B,qDAAqD;IACrD,KAAK,EAAE,OAAO,CAAC;IACf,0DAA0D;IAC1D,KAAK,EAAE,kBAAkB,CAAC;IAC1B,2BAA2B;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,qDAAqD;IACrD,OAAO,EAAE,MAAM,CAAC;CAChB"}
|
package/lib/load.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { UserPromptConfig } from './prompt';
|
|
2
2
|
import { AsyncRule, Rule, RuleConfigQuality, RulesConfig, SyncRule } from './rules';
|
|
3
|
-
export
|
|
3
|
+
export type PluginRecords = Record<string, Plugin>;
|
|
4
4
|
export interface Plugin {
|
|
5
5
|
rules: {
|
|
6
6
|
[ruleName: string]: Rule | AsyncRule | SyncRule;
|
|
@@ -22,7 +22,7 @@ export interface UserConfig {
|
|
|
22
22
|
prompt?: UserPromptConfig;
|
|
23
23
|
[key: string]: unknown;
|
|
24
24
|
}
|
|
25
|
-
export
|
|
25
|
+
export type QualifiedRules = Partial<RulesConfig<RuleConfigQuality.Qualified>>;
|
|
26
26
|
export interface QualifiedConfig {
|
|
27
27
|
extends: string[];
|
|
28
28
|
formatter: string;
|
package/lib/load.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"load.d.ts","sourceRoot":"","sources":["../src/load.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,gBA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,MAAM,MAAM,cAAc,GAAG,OAAO,CAAC,WAAW,CAAC,iBAAiB,CAAC,SAAS,CAAC,CAAC,CAAC;AAE/E,MAAM,WAAW,eAAe;IAC/B,OAAO,EAAE,MAAM,EAAE,CAAC;IAClB,SAAS,EAAE,MAAM,CAAC;IAClB,KAAK,EAAE,cAAc,CAAC;IACtB,YAAY,CAAC,EAAE,YAAY,CAAC;IAC5B,OAAO,CAAC,EAAE,CAAC,CAAC,MAAM,EAAE,MAAM,KAAK,OAAO,CAAC,EAAE,CAAC;IAC1C,cAAc,CAAC,EAAE,OAAO,CAAC;IACzB,OAAO,EAAE,aAAa,CAAC;IACvB,OAAO,EAAE,MAAM,CAAC;IAChB,MAAM,EAAE,gBAAgB,CAAC;CACzB;AAED,MAAM,WAAW,YAAY;IAC5B,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,OAAO,CAAC;CACrB"}
|
package/lib/parse.d.ts
CHANGED
|
@@ -24,7 +24,7 @@ export interface CommitReference {
|
|
|
24
24
|
repository: string | null;
|
|
25
25
|
issue: string | null;
|
|
26
26
|
}
|
|
27
|
-
export
|
|
27
|
+
export type Parser = (message: string, options: ParserOptions) => Omit<Commit, 'raw'>;
|
|
28
28
|
export interface ParserOptions {
|
|
29
29
|
commentChar?: string;
|
|
30
30
|
headerCorrespondence?: string[];
|
package/lib/parse.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../src/parse.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,MAAM;IACtB,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,IAAI,EAAE,MAAM,GAA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,eAAe;IAC/B,GAAG,EAAE,MAAM,CAAC;IACZ,MAAM,EAAE,MAAM,CAAC;IACf,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;IACrB,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,KAAK,EAAE,MAAM,GAAG,IAAI,CAAC;CACrB;AAED,MAAM,MAAM,MAAM,GAAG,CACpB,OAAO,EAAE,MAAM,EACf,OAAO,EAAE,aAAa,KAClB,IAAI,CAAC,MAAM,EAAE,KAAK,CAAC,CAAC;AAEzB,MAAM,WAAW,aAAa;IAC7B,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;IAChC,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB,mBAAmB,CAAC,EAAE,MAAM,EAAE,CAAC;IAC/B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB,oBAAoB,CAAC,EAAE,MAAM,EAAE,CAAC;IAChC,aAAa,CAAC,EAAE,MAAM,CAAC;CACvB"}
|
package/lib/prompt.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export
|
|
2
|
-
export
|
|
3
|
-
export
|
|
1
|
+
export type RuleField = 'header' | 'type' | 'scope' | 'subject' | 'body' | 'footer';
|
|
2
|
+
export type PromptName = RuleField | 'isBreaking' | 'breakingBody' | 'breaking' | 'isIssueAffected' | 'issuesBody' | 'issues';
|
|
3
|
+
export type PromptConfig = {
|
|
4
4
|
settings: {
|
|
5
5
|
scopeEnumSeparator: string;
|
|
6
6
|
enableMultipleScopes: boolean;
|
|
@@ -20,7 +20,7 @@ export declare type PromptConfig = {
|
|
|
20
20
|
};
|
|
21
21
|
}>>;
|
|
22
22
|
};
|
|
23
|
-
export
|
|
23
|
+
export type PromptMessages = {
|
|
24
24
|
skip: string;
|
|
25
25
|
max: string;
|
|
26
26
|
min: string;
|
|
@@ -29,8 +29,8 @@ export declare type PromptMessages = {
|
|
|
29
29
|
lowerLimitWarning: string;
|
|
30
30
|
[_key: string]: string;
|
|
31
31
|
};
|
|
32
|
-
export
|
|
33
|
-
|
|
32
|
+
export type UserPromptConfig = DeepPartial<PromptConfig>;
|
|
33
|
+
type DeepPartial<T> = {
|
|
34
34
|
[P in keyof T]?: {
|
|
35
35
|
[K in keyof T[P]]?: T[P][K];
|
|
36
36
|
};
|
package/lib/prompt.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["../src/prompt.ts"],"names":[],"mappings":"AAAA,
|
|
1
|
+
{"version":3,"file":"prompt.d.ts","sourceRoot":"","sources":["../src/prompt.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,SAAS,GAClB,QAAQ,GACR,MAAM,GACN,OAAO,GACP,SAAS,GACT,MAAM,GACN,QAAQ,CAAC;AAEZ,MAAM,MAAM,UAAU,GACnB,SAAS,GACT,YAAY,GACZ,cAAc,GACd,UAAU,GACV,iBAAiB,GACjB,YAAY,GACZ,QAAQ,CAAC;AAEZ,MAAM,MAAM,YAAY,GAAG;IAC1B,QAAQ,EAAE;QACT,kBAAkB,EAAE,MAAM,CAAC;QAC3B,oBAAoB,EAAE,OAAO,CAAC;KAC9B,CAAC;IACF,QAAQ,EAAE,cAAc,CAAC;IACzB,SAAS,EAAE,OAAO,CACjB,MAAM,CACL,UAAU,EACV;QACC,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,QAAQ,CAAC,EAAE;YAAC,CAAC,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;SAAC,CAAC;QACjC,IAAI,CAAC,EAAE;YACN,CAAC,QAAQ,EAAE,MAAM,GAAG;gBACnB,WAAW,CAAC,EAAE,MAAM,CAAC;gBACrB,KAAK,CAAC,EAAE,MAAM,CAAC;gBACf,KAAK,CAAC,EAAE,MAAM,CAAC;aACf,CAAC;SACF,CAAC;KACF,CACD,CACD,CAAC;CACF,CAAC;AAEF,MAAM,MAAM,cAAc,GAAG;IAC5B,IAAI,EAAE,MAAM,CAAC;IACb,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,YAAY,EAAE,MAAM,CAAC;IACrB,iBAAiB,EAAE,MAAM,CAAC;IAC1B,iBAAiB,EAAE,MAAM,CAAC;IAC1B,CAAC,IAAI,EAAE,MAAM,GAAG,MAAM,CAAC;CACvB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,WAAW,CAAC,YAAY,CAAC,CAAC;AAEzD,KAAK,WAAW,CAAC,CAAC,IAAI;KACpB,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,EAAE;SACf,CAAC,IAAI,MAAM,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC,CAAC;KAC3B;CACD,CAAC"}
|
package/lib/rules.d.ts
CHANGED
|
@@ -5,16 +5,16 @@ import { Commit } from './parse';
|
|
|
5
5
|
* For example, when `header-full-stop` detects a full stop and is set as "always"; it's true.
|
|
6
6
|
* If the `header-full-stop` discovers a full stop but is set to "never"; it's false.
|
|
7
7
|
*/
|
|
8
|
-
export
|
|
8
|
+
export type RuleOutcome = Readonly<[boolean, string?]>;
|
|
9
9
|
/**
|
|
10
10
|
* Rules receive a parsed commit, condition, and possible additional settings through value.
|
|
11
11
|
* All rules should provide the most sensible rule condition and value.
|
|
12
12
|
*/
|
|
13
|
-
export
|
|
14
|
-
export
|
|
15
|
-
export
|
|
16
|
-
export
|
|
17
|
-
export
|
|
13
|
+
export type RuleType = 'async' | 'sync' | 'either';
|
|
14
|
+
export type BaseRule<Value = never, Type extends RuleType = 'either'> = (parsed: Commit, when?: RuleConfigCondition, value?: Value) => Type extends 'either' ? RuleOutcome | Promise<RuleOutcome> : Type extends 'async' ? Promise<RuleOutcome> : Type extends 'sync' ? RuleOutcome : never;
|
|
15
|
+
export type Rule<Value = never> = BaseRule<Value, 'either'>;
|
|
16
|
+
export type AsyncRule<Value = never> = BaseRule<Value, 'async'>;
|
|
17
|
+
export type SyncRule<Value = never> = BaseRule<Value, 'sync'>;
|
|
18
18
|
/**
|
|
19
19
|
* Rules always have a severity.
|
|
20
20
|
* Severity indicates what to do if the rule is found to be broken
|
|
@@ -32,18 +32,18 @@ export declare enum RuleConfigSeverity {
|
|
|
32
32
|
* It can be either "always" (as tested), or "never" (as tested).
|
|
33
33
|
* For example, `header-full-stop` can be enforced as "always" or "never".
|
|
34
34
|
*/
|
|
35
|
-
export
|
|
36
|
-
export
|
|
35
|
+
export type RuleConfigCondition = 'always' | 'never';
|
|
36
|
+
export type RuleConfigTuple<T> = T extends void ? Readonly<[RuleConfigSeverity.Disabled]> | Readonly<[RuleConfigSeverity, RuleConfigCondition]> : Readonly<[RuleConfigSeverity.Disabled]> | Readonly<[RuleConfigSeverity, RuleConfigCondition, T]>;
|
|
37
37
|
export declare enum RuleConfigQuality {
|
|
38
38
|
User = 0,
|
|
39
39
|
Qualified = 1
|
|
40
40
|
}
|
|
41
|
-
export
|
|
42
|
-
export
|
|
43
|
-
export
|
|
44
|
-
export
|
|
45
|
-
export
|
|
46
|
-
export
|
|
41
|
+
export type QualifiedRuleConfig<T> = (() => RuleConfigTuple<T>) | (() => Promise<RuleConfigTuple<T>>) | RuleConfigTuple<T>;
|
|
42
|
+
export type RuleConfig<V = RuleConfigQuality.Qualified, T = void> = V extends RuleConfigQuality.Qualified ? RuleConfigTuple<T> : QualifiedRuleConfig<T>;
|
|
43
|
+
export type CaseRuleConfig<V = RuleConfigQuality.User> = RuleConfig<V, TargetCaseType | TargetCaseType[]>;
|
|
44
|
+
export type LengthRuleConfig<V = RuleConfigQuality.User> = RuleConfig<V, number>;
|
|
45
|
+
export type EnumRuleConfig<V = RuleConfigQuality.User> = RuleConfig<V, string[]>;
|
|
46
|
+
export type RulesConfig<V = RuleConfigQuality.User> = {
|
|
47
47
|
'body-case': CaseRuleConfig<V>;
|
|
48
48
|
'body-empty': RuleConfig<V>;
|
|
49
49
|
'body-full-stop': RuleConfig<V, string>;
|
|
@@ -80,5 +80,5 @@ export declare type RulesConfig<V = RuleConfigQuality.User> = {
|
|
|
80
80
|
'type-min-length': LengthRuleConfig<V>;
|
|
81
81
|
[key: string]: AnyRuleConfig<V>;
|
|
82
82
|
};
|
|
83
|
-
export
|
|
83
|
+
export type AnyRuleConfig<V> = RuleConfig<V, unknown> | RuleConfig<V, void>;
|
|
84
84
|
//# sourceMappingURL=rules.d.ts.map
|
package/lib/rules.d.ts.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../src/rules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,UAAU,CAAC;AACxC,OAAO,EAAC,MAAM,EAAC,MAAM,SAAS,CAAC;AAE/B;;;;GAIG;AACH,
|
|
1
|
+
{"version":3,"file":"rules.d.ts","sourceRoot":"","sources":["../src/rules.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,cAAc,EAAC,MAAM,UAAU,CAAC;AACxC,OAAO,EAAC,MAAM,EAAC,MAAM,SAAS,CAAC;AAE/B;;;;GAIG;AACH,MAAM,MAAM,WAAW,GAAG,QAAQ,CAAC,CAAC,OAAO,EAAE,MAAM,CAAC,CAAC,CAAC,CAAC;AAEvD;;;GAGG;AACH,MAAM,MAAM,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAC;AAEnD,MAAM,MAAM,QAAQ,CAAC,KAAK,GAAG,KAAK,EAAE,IAAI,SAAS,QAAQ,GAAG,QAAQ,IAAI,CACvE,MAAM,EAAE,MAAM,EACd,IAAI,CAAC,EAAE,mBAAmB,EAC1B,KAAK,CAAC,EAAE,KAAK,KACT,IAAI,SAAS,QAAQ,GACvB,WAAW,GAAG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AC,IAAI,UAAU,CAAC,CAAC,EAAE,OAAO,CAAC,GAAG,UAAU,CAAC,CAAC,EAAE,IAAI,CAAC,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@commitlint/types",
|
|
3
|
-
"version": "17.
|
|
3
|
+
"version": "17.4.0",
|
|
4
4
|
"description": "Shared types for commitlint packages",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"types": "lib/index.d.ts",
|
|
@@ -31,7 +31,7 @@
|
|
|
31
31
|
"chalk": "^4.1.0"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
|
-
"@commitlint/utils": "^17.
|
|
34
|
+
"@commitlint/utils": "^17.4.0"
|
|
35
35
|
},
|
|
36
|
-
"gitHead": "
|
|
36
|
+
"gitHead": "7b0f7e805818944ab9fa42c52b6858211bbf2a66"
|
|
37
37
|
}
|
package/CHANGELOG.md
DELETED
|
@@ -1,244 +0,0 @@
|
|
|
1
|
-
# Change Log
|
|
2
|
-
|
|
3
|
-
All notable changes to this project will be documented in this file.
|
|
4
|
-
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
|
-
|
|
6
|
-
# [17.0.0](https://github.com/conventional-changelog/commitlint/compare/v16.3.0...v17.0.0) (2022-05-16)
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
* chore!: minimum node version v14 (#3128) ([ac5f9b4](https://github.com/conventional-changelog/commitlint/commit/ac5f9b47a9e3cd5c9d58b14da0feb426f06b1ef9)), closes [#3128](https://github.com/conventional-changelog/commitlint/issues/3128)
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
### BREAKING CHANGES
|
|
13
|
-
|
|
14
|
-
* drop node v12 support
|
|
15
|
-
|
|
16
|
-
* chore: rename circleci windows job
|
|
17
|
-
|
|
18
|
-
node version is not defned by the name anyways (i think)
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
## [16.2.1](https://github.com/conventional-changelog/commitlint/compare/v16.2.0...v16.2.1) (2022-02-13)
|
|
25
|
-
|
|
26
|
-
**Note:** Version bump only for package @commitlint/types
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
# [16.0.0](https://github.com/conventional-changelog/commitlint/compare/v15.0.0...v16.0.0) (2021-12-26)
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
### Features
|
|
36
|
-
|
|
37
|
-
* **cz-commitlint:** support select scope with radio list by setting disableMultipleScopes ([#2911](https://github.com/conventional-changelog/commitlint/issues/2911)) ([9d8d73f](https://github.com/conventional-changelog/commitlint/commit/9d8d73f36e0c62c8cd9e3e913b66a5ca46ebf622)), closes [#2782](https://github.com/conventional-changelog/commitlint/issues/2782)
|
|
38
|
-
* config validation ([#2412](https://github.com/conventional-changelog/commitlint/issues/2412)) ([c717202](https://github.com/conventional-changelog/commitlint/commit/c7172022097b11f46b33617e4a94d751243c1049)), closes [#327](https://github.com/conventional-changelog/commitlint/issues/327)
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
### BREAKING CHANGES
|
|
42
|
-
|
|
43
|
-
* **cz-commitlint:** users who is using multiple scopes need to set enableMultipleScopes to true
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
# [15.0.0](https://github.com/conventional-changelog/commitlint/compare/v14.2.0...v15.0.0) (2021-11-17)
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
### Bug Fixes
|
|
53
|
-
|
|
54
|
-
* **types:** fix signature of QualifiedRuleConfig for async configurations ([#2868](https://github.com/conventional-changelog/commitlint/issues/2868)) ([#2869](https://github.com/conventional-changelog/commitlint/issues/2869)) ([c7f355b](https://github.com/conventional-changelog/commitlint/commit/c7f355b25e5baddab0b9559892f5ce4112e4f93a))
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
### Features
|
|
58
|
-
|
|
59
|
-
* simplify config resolution ([#2398](https://github.com/conventional-changelog/commitlint/issues/2398)) ([8a8384f](https://github.com/conventional-changelog/commitlint/commit/8a8384f3c18954447cb633e76a573e1db71a1440)), closes [#327](https://github.com/conventional-changelog/commitlint/issues/327)
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
# [14.0.0](https://github.com/conventional-changelog/commitlint/compare/v13.2.1...v14.0.0) (2021-10-26)
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
* support multiple scopes and multiple cases & fix sentence-case is not consistent with commitlint/cli (#2806) ([2c71a7e](https://github.com/conventional-changelog/commitlint/commit/2c71a7e2965a2beff805982d37243b79a48c9360)), closes [#2806](https://github.com/conventional-changelog/commitlint/issues/2806) [#2782](https://github.com/conventional-changelog/commitlint/issues/2782)
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
### BREAKING CHANGES
|
|
72
|
-
|
|
73
|
-
* add prompt.settings configuration
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
# [13.2.0](https://github.com/conventional-changelog/commitlint/compare/v13.1.0...v13.2.0) (2021-09-28)
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
### Bug Fixes
|
|
83
|
-
|
|
84
|
-
* **types:** prompt messages key ([4825a52](https://github.com/conventional-changelog/commitlint/commit/4825a521e2c74d63a11920b48094fddc79001b3c))
|
|
85
|
-
* **types:** prompt messages props optional ([0bd0592](https://github.com/conventional-changelog/commitlint/commit/0bd0592148ab4266fd76816b19d352e2cf947f8c))
|
|
86
|
-
* **types:** user config prompt ([6d7a1c4](https://github.com/conventional-changelog/commitlint/commit/6d7a1c40e2f8a8ff22595e0e17f71f3702b0699c))
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
# [13.1.0](https://github.com/conventional-changelog/commitlint/compare/v13.0.0...v13.1.0) (2021-07-24)
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
### Bug Fixes
|
|
96
|
-
|
|
97
|
-
* **types:** adds TargetCaseType[] for CaseRuleConfig ([c3bef38](https://github.com/conventional-changelog/commitlint/commit/c3bef384ff1a3ec428ba7c86bc778c50a9e6eead))
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
# [13.0.0](https://github.com/conventional-changelog/commitlint/compare/v12.1.4...v13.0.0) (2021-05-24)
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
### Features
|
|
107
|
-
|
|
108
|
-
* **rules:** add `trailer-exists` rule ([#2578](https://github.com/conventional-changelog/commitlint/issues/2578)) ([cd3816d](https://github.com/conventional-changelog/commitlint/commit/cd3816d553762eae99e088689395c55afce0c6cc))
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
* chore!: remove node 10 support (#2596) ([4db4ba1](https://github.com/conventional-changelog/commitlint/commit/4db4ba1b0b312410a0f62100a93a80c246a6c410)), closes [#2596](https://github.com/conventional-changelog/commitlint/issues/2596)
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
### BREAKING CHANGES
|
|
115
|
-
|
|
116
|
-
* minimum node version is 12
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
## [12.1.3](https://github.com/conventional-changelog/commitlint/compare/v12.1.2...v12.1.3) (2021-05-12)
|
|
123
|
-
|
|
124
|
-
**Note:** Version bump only for package @commitlint/types
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
## [12.1.2](https://github.com/conventional-changelog/commitlint/compare/v12.1.1...v12.1.2) (2021-04-29)
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
### Bug Fixes
|
|
134
|
-
|
|
135
|
-
* **rules:** fix subject-full-stop rule config value type ([#2534](https://github.com/conventional-changelog/commitlint/issues/2534)) ([2ab3c57](https://github.com/conventional-changelog/commitlint/commit/2ab3c57b709ddad3fc98d768309ac4fdac8cb68a))
|
|
136
|
-
* **types:** update chalk import ([#2535](https://github.com/conventional-changelog/commitlint/issues/2535)) ([89f9a6d](https://github.com/conventional-changelog/commitlint/commit/89f9a6d759f7296438e184a93c1f766aba1443ca))
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
## [12.1.1](https://github.com/conventional-changelog/commitlint/compare/v12.1.0...v12.1.1) (2021-04-02)
|
|
143
|
-
|
|
144
|
-
**Note:** Version bump only for package @commitlint/types
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
## [12.0.1](https://github.com/conventional-changelog/commitlint/compare/v12.0.0...v12.0.1) (2021-02-23)
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
### Bug Fixes
|
|
154
|
-
|
|
155
|
-
* **load:** use `Rule | AsyncRule | SyncRule` as rule value type in `Plugin` ([#2146](https://github.com/conventional-changelog/commitlint/issues/2146)) ([75b67b8](https://github.com/conventional-changelog/commitlint/commit/75b67b8fb7fc4df21267b98f0c9daeeb1130b824))
|
|
156
|
-
* **types:** correct chalkColor type ([#2420](https://github.com/conventional-changelog/commitlint/issues/2420)) ([ef8bdad](https://github.com/conventional-changelog/commitlint/commit/ef8bdad96c9ee7c3ad67f8280818c7f49c1df1fe))
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
# [12.0.0](https://github.com/conventional-changelog/commitlint/compare/v11.0.0...v12.0.0) (2021-01-18)
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
### Features
|
|
166
|
-
|
|
167
|
-
* **load:** allow specifying helpUrl via config ([#2180](https://github.com/conventional-changelog/commitlint/issues/2180)) ([d6795a3](https://github.com/conventional-changelog/commitlint/commit/d6795a3c4633ba6efd7a0fcff48339dc291cd832))
|
|
168
|
-
* **rules:** add body-full-stop rule ([#2144](https://github.com/conventional-changelog/commitlint/issues/2144)) ([7767ca2](https://github.com/conventional-changelog/commitlint/commit/7767ca2591d10207c4abe7f3e5e6de503ac12a25))
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
# [11.0.0](https://github.com/conventional-changelog/commitlint/compare/v10.0.0...v11.0.0) (2020-09-05)
|
|
175
|
-
|
|
176
|
-
**Note:** Version bump only for package @commitlint/types
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
# [10.0.0](https://github.com/conventional-changelog/commitlint/compare/v9.1.2...v10.0.0) (2020-08-16)
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
* refactor!: drop support for node 8 (#1999) ([751f39f](https://github.com/conventional-changelog/commitlint/commit/751f39f284ef232574a176c3c11b1982ee544166)), closes [#1999](https://github.com/conventional-changelog/commitlint/issues/1999)
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
### BREAKING CHANGES
|
|
189
|
-
|
|
190
|
-
* remove node 8 from circle-ci checks
|
|
191
|
-
|
|
192
|
-
also remove node 13 because we do not support experimental versions
|
|
193
|
-
|
|
194
|
-
* docs: update node v10 to latest LTS 10 version
|
|
195
|
-
|
|
196
|
-
Co-authored-by: Cedric van Putten <me@bycedric.com>
|
|
197
|
-
|
|
198
|
-
Co-authored-by: Cedric van Putten <me@bycedric.com>
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
## [9.1.2](https://github.com/conventional-changelog/commitlint/compare/v9.1.1...v9.1.2) (2020-07-13)
|
|
205
|
-
|
|
206
|
-
**Note:** Version bump only for package @commitlint/types
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
## [9.1.1](https://github.com/conventional-changelog/commitlint/compare/v9.1.0...v9.1.1) (2020-06-30)
|
|
213
|
-
|
|
214
|
-
**Note:** Version bump only for package @commitlint/types
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
# [9.1.0](https://github.com/conventional-changelog/commitlint/compare/v9.0.1...v9.1.0) (2020-06-21)
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
### Features
|
|
224
|
-
|
|
225
|
-
* add local plugins support ([#1692](https://github.com/conventional-changelog/commitlint/issues/1692)) ([7b29c48](https://github.com/conventional-changelog/commitlint/commit/7b29c48321b513e091849fbb2cc2bf0e6ebb94a6))
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
## [9.0.1](https://github.com/conventional-changelog/commitlint/compare/v9.0.0...v9.0.1) (2020-05-26)
|
|
232
|
-
|
|
233
|
-
**Note:** Version bump only for package @commitlint/types
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
# [9.0.0](https://github.com/conventional-changelog/commitlint/compare/v8.3.5...v9.0.0) (2020-05-21)
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
### Features
|
|
243
|
-
|
|
244
|
-
* add async promise based rules methods into lint ([#976](https://github.com/conventional-changelog/commitlint/issues/976)) ([4443062](https://github.com/conventional-changelog/commitlint/commit/444306249b8a3d04524538f61edca8f6cc10d75f))
|