@commitlint/types
Advanced tools
Comparing version 14.0.0 to 15.0.0
@@ -6,2 +6,18 @@ # Change Log | ||
# [15.0.0](https://github.com/conventional-changelog/commitlint/compare/v14.2.0...v15.0.0) (2021-11-17) | ||
### Bug Fixes | ||
* **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)) | ||
### Features | ||
* 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) | ||
# [14.0.0](https://github.com/conventional-changelog/commitlint/compare/v13.2.1...v14.0.0) (2021-10-26) | ||
@@ -8,0 +24,0 @@ |
@@ -14,6 +14,6 @@ import { UserPromptConfig } from './prompt'; | ||
export interface UserConfig { | ||
extends?: string[]; | ||
extends?: string | string[]; | ||
formatter?: string; | ||
rules?: Partial<RulesConfig>; | ||
parserPreset?: string | ParserPreset; | ||
parserPreset?: string | ParserPreset | Promise<ParserPreset>; | ||
ignores?: ((commit: string) => boolean)[]; | ||
@@ -40,5 +40,5 @@ defaultIgnores?: boolean; | ||
rules: QualifiedRules; | ||
parserPreset: ParserPreset; | ||
ignores: ((commit: string) => boolean)[]; | ||
defaultIgnores: boolean; | ||
parserPreset?: ParserPreset; | ||
ignores?: ((commit: string) => boolean)[]; | ||
defaultIgnores?: boolean; | ||
plugins: PluginRecords; | ||
@@ -49,6 +49,6 @@ helpUrl: string; | ||
export interface ParserPreset { | ||
name: string; | ||
path: string; | ||
name?: string; | ||
path?: string; | ||
parserOpts?: unknown; | ||
} | ||
//# sourceMappingURL=load.d.ts.map |
@@ -41,3 +41,3 @@ import { TargetCaseType } from './ensure'; | ||
} | ||
export declare type QualifiedRuleConfig<T> = (() => RuleConfigTuple<T>) | (() => RuleConfigTuple<Promise<T>>) | RuleConfigTuple<T>; | ||
export declare type QualifiedRuleConfig<T> = (() => RuleConfigTuple<T>) | (() => Promise<RuleConfigTuple<T>>) | RuleConfigTuple<T>; | ||
export declare type RuleConfig<V = RuleConfigQuality.Qualified, T = void> = V extends RuleConfigQuality.Qualified ? RuleConfigTuple<T> : QualifiedRuleConfig<T>; | ||
@@ -44,0 +44,0 @@ export declare type CaseRuleConfig<V = RuleConfigQuality.User> = RuleConfig<V, TargetCaseType | TargetCaseType[]>; |
{ | ||
"name": "@commitlint/types", | ||
"version": "14.0.0", | ||
"version": "15.0.0", | ||
"description": "Shared types for commitlint packages", | ||
@@ -34,5 +34,5 @@ "main": "lib/index.js", | ||
"devDependencies": { | ||
"@commitlint/utils": "^14.0.0" | ||
"@commitlint/utils": "^15.0.0" | ||
}, | ||
"gitHead": "0bb3487f8ca0cd8e67977c089f65037ea2c7788b" | ||
"gitHead": "399a0289356c670a87524387cc96d8fb0a33fdca" | ||
} |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
34740