Bug: 5.27.0 regression: @typescript-eslint/no-unused-vars wrongly reports the jsxFactory set in tsconfig.json #5153
Labels
accepting prs
Go ahead, send a pull request that resolves this issue
bug
Something isn't working
good first issue
Good for newcomers
package: parser
Issues related to @typescript-eslint/parser
Before You File a Bug Report Please Confirm You Have Done The Following...
Issue Description
I use Preact and have this in my tsconfig.json:
I use it like so:
It used to result in no errors. With version 5.27.0, it reports
h
andFragment
as unused.I’ve searched through the issue tracker, and also in TypeScript’s and Preact’s issue trackers, but couldn’t find anything. I apologize if I missed something, or this is a misunderstanding on my side that just happened to work before!
Reproduction Repository Link
https://github.com/lydell/typescript-eslint-preact-issue
Repro Steps
npm ci
npm test
Versions
@typescript-eslint/eslint-plugin
5.27.0
@typescript-eslint/parser
5.27.0
TypeScript
4.7.3
ESLint
8.17.0
node
18.1.0
The text was updated successfully, but these errors were encountered: