-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bug: Type inference error when using tseslint.config()
with eslint-plugin-react
#8522
Comments
For some reason they export a There's a weird thing happening. I can reproduce the error in your repro but I can't reproduce it in the playground. I'm not sure why TS is erroring on this. Filed an upstream issue: |
Filed jsx-eslint/eslint-plugin-react#3694 which should fix a flat config bug and also fix this type issue. |
Closing as there's nothing we can do about this:
|
Before You File a Bug Report Please Confirm You Have Done The Following...
Issue Description
Using
eslint-plugin-react
inside of thetseslint.config()
function ineslint.config.js
causes the following type error in VS Code:eslint.config.js
:I'm not sure if this is a bug in
eslint-plugin-react
ortypescript-eslint
, but given that eslint still works correctly and this is purely a type error I opened an issue here.Reproduction Repository Link
https://github.com/printfn/tseslint-react-repro
Repro Steps
npm install
eslint.config.js
fileeslintReact
has a type errorVersions
@typescript-eslint/eslint-plugin
7.0.2
@typescript-eslint/parser
7.0.2
@typescript-eslint/scope-manager
7.0.2
@typescript-eslint/typescript-estree
7.0.2
@typescript-eslint/type-utils
7.0.2
@typescript-eslint/utils
7.0.2
TypeScript
5.3.3
ESLint
8.56.0
node
21.6.2
The text was updated successfully, but these errors were encountered: