Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork2.8k
Closed
Labels
Milestone
Description
Before You File a Proposal Please Confirm You Have Done The Following...
- I havesearched for related issues and found none that match my proposal.
- I have searched thecurrent rule list and found no rules that match my proposal.
- I haveread the FAQ and my problem is not listed.
Relevant Package
rule-tester
My proposal is suitable for this project
- I believe my proposal would be useful to the broader TypeScript community (meaning it is not a niche proposal).
Description
When I set up a very standard usage of@typescript-eslint/rule-tester@8.0.0-alpha.59 witheslint@9.5.0 in Vitest, test runs crash with:
FAIL src/no-loop-over-enum.test.ts > no-loop-over-enum > invalid > enum Values { value } for (const a in Values) {}TypeError: Cannot read properties of undefined (reading 'parse') ❯ parse node_modules/eslint/lib/linter/linter.js:906:29 ❯ Linter._verifyWithFlatConfigArrayAndWithoutProcessors node_modules/eslint/lib/linter/linter.js:1660:33 ❯ Linter._verifyWithFlatConfigArray node_modules/eslint/lib/linter/linter.js:2017:21 ❯ Linter.verify node_modules/eslint/lib/linter/linter.js:1492:61 ❯ RuleTester.runRuleForItem node_modules/@typescript-eslint/rule-tester/src/RuleTester.ts:710:33 ❯ RuleTester.#testInvalidTemplate node_modules/@typescript-eslint/rule-tester/src/RuleTester.ts:862:25 ❯ node_modules/@typescript-eslint/rule-tester/src/RuleTester.ts:513:40This does not reproduce witheslint@9.4.0.
Full repro on:https://github.com/JoshuaKGoldberg/repros/tree/repro-rule-tester-eslint-parse-error
Additional Info
No response