A standalone health check script for React applications to detect violations of the Rules of React that could cause issues with the React Compiler (formerly React Forget). v1.0.0 is the initial release, distributed via npx, designed to be run once per codebase. It scans source files for patterns that break the Rules of React (e.g., mutating state, conditional hooks) and reports them. Unlike eslint-plugin-react-hooks which lints during development, this is a separate, one-time analysis tool. Maintained by the React team at Meta. Release cadence is low; expect minor updates for bug fixes.
npm install react-compiler-healthcheckVerified import paths — ran on the pinned version, not inferred.
Running the health check script in your project root to detect React Compiler violations.
Review each warning manually and consider adjusting code to be more explicit.
Run both eslint-plugin-react-hooks and this health check for comprehensive coverage.
Use 'npx react-compiler-healthcheck@latest' instead.
No dependency data recorded yet.