ESLint plugin for codebases using React Compiler. Flags manual memoization patterns (useMemo, useCallback, React.memo) to remind developers to let the compiler optimize automatically. Current version 1.0.4, actively developed, ships TypeScript types. Provides three rules: no-component-memo (auto-fixable), no-hook-memo (auto-fixable), and no-custom-memo-hook. Includes a recommended flat config for ESLint 9+. Peer dependency on eslint ^8.57.0 || ^9.0.0. Key differentiator: specifically targets React Compiler users, unlike generic eslint-plugin-react.
npm install eslint-plugin-react-no-manual-memoNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Setup eslint-plugin-react-no-manual-memo with recommended flat config for ESLint 9+ and example of individual rule configuration.
Set rule severity explicitly: 'react-no-manual-memo/no-hook-memo': 'warn' in your config if you want warnings.
Use defineConfig() as shown in the README, or apply config array directly per ESLint docs.
Use 'import' syntax, or rename config file to .mjs, or set 'type': 'module' in package.json.
Run 'npm install --save-dev eslint-plugin-react-no-manual-memo'.
Use reactNoManualMemo.configs['flat/recommended'] inside defineConfig() array.
Use ESLint 9+ for flat config, or use .eslintrc.* format for older versions.