Sha256: 38b31814d707f908922c4927554065d62d12ce48d30160ad8d77b177064c9bd3

Contents?: true

Size: 1.23 KB

Versions: 2

Compression:

Stored size: 1.23 KB

Contents

import { UserPromptConfig } from './prompt.js';
import { AsyncRule, Rule, RuleConfigQuality, RulesConfig, SyncRule } from './rules.js';
export type PluginRecords = Record<string, Plugin>;
export interface Plugin {
    rules: {
        [ruleName: string]: Rule | AsyncRule | SyncRule;
    };
}
export interface LoadOptions {
    cwd?: string;
    file?: string;
}
export interface UserConfig {
    extends?: string | string[];
    formatter?: string;
    rules?: Partial<RulesConfig>;
    parserPreset?: string | ParserPreset | Promise<ParserPreset>;
    ignores?: ((commit: string) => boolean)[];
    defaultIgnores?: boolean;
    plugins?: (string | Plugin)[];
    helpUrl?: string;
    prompt?: UserPromptConfig;
    [key: string]: unknown;
}
export type QualifiedRules = Partial<RulesConfig<RuleConfigQuality.Qualified>>;
export interface QualifiedConfig {
    extends: string[];
    formatter: string;
    rules: QualifiedRules;
    parserPreset?: ParserPreset;
    ignores?: ((commit: string) => boolean)[];
    defaultIgnores?: boolean;
    plugins: PluginRecords;
    helpUrl: string;
    prompt: UserPromptConfig;
}
export interface ParserPreset {
    name?: string;
    path?: string;
    parserOpts?: unknown;
}
//# sourceMappingURL=load.d.ts.map

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
pcp-server-ruby-sdk-0.0.6 node_modules/@commitlint/types/lib/load.d.ts
pcp-server-ruby-sdk-0.1.0 node_modules/@commitlint/types/lib/load.d.ts