RuleTester.d.ts 907 Bytes
import * as TSESLint from '../ts-eslint';
declare const parser = "@typescript-eslint/parser";
declare type RuleTesterConfig = Pick<TSESLint.RuleTesterConfig, Exclude<keyof TSESLint.RuleTesterConfig, 'parser'>> & {
    parser: typeof parser;
};
declare class RuleTester extends TSESLint.RuleTester {
    private "RuleTester.#private";
    constructor(options: RuleTesterConfig);
    private getFilename;
    run<TMessageIds extends string, TOptions extends Readonly<unknown[]>>(name: string, rule: TSESLint.RuleModule<TMessageIds, TOptions>, testsReadonly: TSESLint.RunTests<TMessageIds, TOptions>): void;
}
/**
 * Simple no-op tag to mark code samples as "should not format with prettier"
 *   for the internal/plugin-test-formatting lint rule
 */
declare function noFormat(strings: TemplateStringsArray, ...keys: string[]): string;
export { noFormat, RuleTester };
//# sourceMappingURL=RuleTester.d.ts.map