ESLint plugin providing React Server Component (RSC) related lint rules from the eslint-react project. The current stable version is v4.2.3. The plugin requires ESLint ^10.0.0 and Node.js >=20.19.0, and ships TypeScript type declarations. It is part of the @eslint-react monorepo, which has active beta development with frequent releases. Differentiators: focused purely on RSC patterns, part of a larger eslint-react ecosystem, and written in TypeScript with full type support.
npm install eslint-plugin-react-rscVerified import paths — ran on the pinned version, not inferred.
Basic setup of eslint-plugin-react-rsc in an ESLint flat config, enabling three core RSC rules.
Use import syntax or dynamic import; ensure 'type': 'module' in package.json.
Upgrade ESLint to version 10 or later.
Upgrade Node.js to version 20.19.0 or later.
Install TypeScript as a dev dependency if using type-aware rules.
Pin to v4.x for production.
Switch to import syntax: import eslintPluginReactRsc from 'eslint-plugin-react-rsc'
Run npm install eslint@^10.0.0
Use configs.recommended or configs['recommended'].