react icon indicating copy to clipboard operation
react copied to clipboard

Bug: eslint-plugin-react-hooks not throwing "Hooks may not be referenced as normal values" error

Open jsladerman opened this issue 1 month ago • 1 comments

React version: 19.2.

Steps To Reproduce

  1. The expected behavior screenshot shows when my repo had eslint-plugin-react-compiler@beta and [email protected] installed. Per the React Compiler v1.0 announcement, I removed eslint-plugin-react-compiler, bumped eslint-plugin-react-hooks to the latest version (7.0.1), and made the eslint config changes accordingly. All other rules, including the new ones, seem to work as expected, except this one seems to have disappeared (I only noticed because our codebase has many instances of this that we've been planning to fix at some point before enabling the compiler). Is this a bug or is this no longer meant to throw a lint error, since it does explicitly break the rules of React ?

The current behavior

Image

The expected behavior

Image

jsladerman avatar Dec 04 '25 01:12 jsladerman

Please assign this issue to me. Thank You.

Garvitpant777 avatar Dec 04 '25 19:12 Garvitpant777