Skip to content

Commit

Permalink
fix(experimental-utils): expand RuleTester config properties (#3557)
Browse files Browse the repository at this point in the history
  • Loading branch information
G-Rath committed Jun 20, 2021
1 parent 2a36e3e commit ffbb3cf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/experimental-utils/src/ts-eslint/RuleTester.ts
@@ -1,6 +1,7 @@
import { RuleTester as ESLintRuleTester } from 'eslint';
import { AST_NODE_TYPES, AST_TOKEN_TYPES } from '../ts-estree';
import { ParserOptions } from './ParserOptions';
import { Linter } from './Linter';
import { RuleCreateFunction, RuleModule } from './Rule';

interface ValidTestCase<TOptions extends Readonly<unknown[]>> {
Expand Down Expand Up @@ -121,7 +122,7 @@ interface RunTests<
readonly valid: readonly (ValidTestCase<TOptions> | string)[];
readonly invalid: readonly InvalidTestCase<TMessageIds, TOptions>[];
}
interface RuleTesterConfig {
interface RuleTesterConfig extends Linter.Config {
// should be require.resolve(parserPackageName)
readonly parser: string;
readonly parserOptions?: Readonly<ParserOptions>;
Expand Down

0 comments on commit ffbb3cf

Please sign in to comment.