mirror of
https://github.com/Sevichecc/Urara-Blog.git
synced 2025-05-01 21:49:30 +08:00
18 lines
No EOL
843 B
Text
18 lines
No EOL
843 B
Text
import * as TSESLint from '../ts-eslint';
|
|
declare const parser = "@typescript-eslint/parser";
|
|
declare type RuleTesterConfig = Omit<TSESLint.RuleTesterConfig, 'parser'> & {
|
|
parser: typeof parser;
|
|
};
|
|
declare class RuleTester extends TSESLint.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 |