-
Notifications
You must be signed in to change notification settings - Fork 49.5k
docs(eslint-plugin-react-hooks): document react-hooks/react-compiler rule #34117
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
Conversation
Comparing: 66f09bd...8492dbe Critical size changesIncludes critical production bundles, as well as any change greater than 2%:
Significant size changesIncludes any change greater than 0.2%: (No significant changes) |
Looks good to me. Thanks for contributing it! |
I see that the new docs for react.dev in reactjs/react.dev#7986 (thanks @poteto!) and reactjs/react.dev#8005 (thanks @rickhanlonii!) are referring to many new rules (eg. https://react.dev/reference/eslint-plugin-react-hooks ![]() These are seemingly being generated by code in react/compiler/packages/babel-plugin-react-compiler/src/CompilerError.ts Lines 714 to 980 in e08f53b
So maybe my PR here is obsolete? And the readme for |
Yup, we broke up the rule into distinct rules (that share a single invocation of the compiler) to help provide more targeted feedback. I think it makes sense to close this, and we can make adjustments to the docs as necessary. |
Summary
The ESLint rule from
eslint-plugin-react-compiler
was merged intoeslint-plugin-react-hooks
in the following PR:react-hooks
plugin #32416This PR adds documentation referencing the new
react-hooks/react-compiler
rule.How did you test this change?
I wrote, edited and read the adaptations to the readme.
cc @poteto @michaelfaith