quick-lint / quick-lint-js

quick-lint-js finds bugs in JavaScript programs
https://quick-lint-js.com
GNU General Public License v3.0
1.52k stars 192 forks source link

false positives with Preact code #1152

Closed strager closed 8 months ago

strager commented 8 months ago

Preact uses attribute names like class but quick-lint-js reports diagnostics for this.

Report: https://twitter.com/Hasen_Judi/status/1741916636687610004

FlatMapIO commented 8 months ago

When I finished writing the issue I found this 🤣, I want it to be able to read tsconfig.json and /** @jsxImportSource framework */

Kostas-Xafis commented 8 months ago

+1 I was just about to open an issue too

jonathankowalski commented 8 months ago

Same with Solid

strager commented 8 months ago

Fixed the false positives in Git commit 6b3fdbed0c2c293b13817c0bfd1466e757988a93. Added a config option in Git commit 9dd47102fbe8af387c2d4b46512a829e89037789: https://quick-lint-js.com/errors/jsx/.

These fixes will end up in the upcoming 3.1 release.

strager commented 8 months ago

Version 3.1.0 has shipped with the fix. (It actually shipped 4 days ago, but I forgot to mention it here...)