eslint-plugin-sql
Version:
SQL linting rules for ESLint.
10 lines (9 loc) • 706 B
TypeScript
import { type InvalidTestCase, RuleTester, type ValidTestCase } from '@typescript-eslint/rule-tester';
import { type RuleModule } from '@typescript-eslint/utils/eslint-utils';
export type TestCases<TMessageIds extends string, TOptions extends readonly unknown[] = []> = {
invalid: Array<InvalidTestCase<TMessageIds, TOptions>>;
valid: Array<ValidTestCase<TOptions>>;
};
export declare const createRuleTester: <TMessageIds extends string, TOptions extends readonly unknown[] = []>(ruleName: string, rule: RuleModule<TMessageIds, TOptions>, parameters: ConstructorParameters<typeof RuleTester>[0], testCases: TestCases<TMessageIds, TOptions>) => {
testCases: TestCases<TMessageIds, TOptions>;
};