Sha256: 5a0a3ffc48836c1ede92b5b9957d8faf2cbf6afce51650f117de02e464e8b41d

Contents?: true

Size: 1.44 KB

Versions: 2

Compression:

Stored size: 1.44 KB

Contents

import type { Options } from 'conventional-commits-parser';
import { IsIgnoredOptions } from './is-ignored.js';
import { PluginRecords } from './load.js';
import { RuleConfigSeverity, RuleConfigTuple } from './rules.js';
export type LintRuleConfig = Record<string, Readonly<[RuleConfigSeverity.Disabled]> | RuleConfigTuple<void> | RuleConfigTuple<unknown>>;
export interface LintOptions {
    /** If it should ignore the default commit messages (defaults to `true`) */
    defaultIgnores?: IsIgnoredOptions['defaults'];
    /** Additional commits to ignore, defined by ignore matchers  */
    ignores?: IsIgnoredOptions['ignores'];
    /** The parser configuration to use when linting the commit */
    parserOpts?: Options;
    plugins?: PluginRecords;
    helpUrl?: string;
}
export interface LintOutcome {
    /** The linted commit, as string */
    input: string;
    /** If the linted commit is considered valid */
    valid: boolean;
    /** All errors, per rule, for the commit */
    errors: LintRuleOutcome[];
    /** All warnings, per rule, for the commit */
    warnings: LintRuleOutcome[];
}
export interface LintRuleOutcome {
    /** If the commit is considered valid for the rule */
    valid: boolean;
    /** The "severity" of the rule (1 = warning, 2 = error) */
    level: RuleConfigSeverity;
    /** The name of the rule */
    name: string;
    /** The message returned from the rule, if invalid */
    message: string;
}
//# sourceMappingURL=lint.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/lint.d.ts
pcp-server-ruby-sdk-0.1.0 node_modules/@commitlint/types/lib/lint.d.ts