For AI agents: the complete documentation index is available at https://rslint.rs/llms.txt, the full documentation bundle is available at https://rslint.rs/llms-full.txt, and this page is available as Markdown at https://rslint.rs/api/presets/react-plugin.md.
close

reactPlugin

reactPlugin exposes Rslint's built-in implementation of supported rules from eslint-plugin-react 7.x. Its preset follows the upstream flat recommended configuration for the rules Rslint currently supports.

import { defineConfig, reactPlugin } from '@rslint/core';

export default defineConfig([reactPlugin.configs.recommended]);

Presets

PresetDescriptionView rulesSource
reactPlugin.configs.recommendedReact rulesView rules →eslint-plugin-react configs.flat.recommended

See Rules & Presets for guidance on choosing and layering presets.