UNPKG

843 BTypeScriptView Raw
1import * as TSESLint from '../ts-eslint';
2declare const parser = "@typescript-eslint/parser";
3declare type RuleTesterConfig = Omit<TSESLint.RuleTesterConfig, 'parser'> & {
4 parser: typeof parser;
5};
6declare class RuleTester extends TSESLint.RuleTester {
7 #private;
8 constructor(options: RuleTesterConfig);
9 private getFilename;
10 run<TMessageIds extends string, TOptions extends Readonly<unknown[]>>(name: string, rule: TSESLint.RuleModule<TMessageIds, TOptions>, testsReadonly: TSESLint.RunTests<TMessageIds, TOptions>): void;
11}
12/**
13 * Simple no-op tag to mark code samples as "should not format with prettier"
14 * for the internal/plugin-test-formatting lint rule
15 */
16declare function noFormat(strings: TemplateStringsArray, ...keys: string[]): string;
17export { noFormat, RuleTester };
18//# sourceMappingURL=RuleTester.d.ts.map
\No newline at end of file