Bug: Confusing error when unknown parser used with getParserServices(context, true) in flat config #8891
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
bug
Something isn't working
package: utils
Issues related to the @typescript-eslint/utils package
Before You File a Bug Report Please Confirm You Have Done The Following...
Relevant Package
utils
Playground Link
No response
Repro Code
ESLint Config
tsconfig
Expected Result
getParserServices
should give a complaint saying that the parser is some other one, not@typescript-eslint/parser
.Actual Result
Additional Info
See isolated repro: https://github.com/JoshuaKGoldberg/repros/tree/ts-eslint-unknown-parser-flat-config
Versions
typescript-eslint
7.6.0
ESLint
8.57.0
😩
The text was updated successfully, but these errors were encountered: