Bug: Type inference error when using tseslint.config()
with eslint-plugin-react
#8522
Closed
4 tasks done
tseslint.config()
with eslint-plugin-react
#8522
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: