Skip to content

Commit

Permalink
fix(utils): RuleTester should not require a parser (#713)
Browse files Browse the repository at this point in the history
  • Loading branch information
SimenB authored and bradzacher committed Jul 17, 2019
1 parent 28a131d commit 158a417
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion packages/experimental-utils/src/ts-eslint/RuleTester.ts
Expand Up @@ -46,7 +46,12 @@ interface RunTests<
invalid: InvalidTestCase<TMessageIds, TOptions>[];
}
interface RuleTesterConfig {
parser: '@typescript-eslint/parser';
parser?:
| '@typescript-eslint/parser'
| 'espree'
| 'babel-eslint'
| 'esprima'
| string;
parserOptions?: ParserOptions;
}
declare interface RuleTester {
Expand Down

0 comments on commit 158a417

Please sign in to comment.