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/rules/react/react-in-jsx-scope.md.
close

react-in-jsx-scope

Added in v0.3.0

Configuration

PresetConfigured Value
✅ reactPlugin.configs.recommended"error"
rslint.config.ts
import { defineConfig, reactPlugin } from '@rslint/core';

export default defineConfig([
  reactPlugin.configs.recommended,
  {
    rules: {
      'react/react-in-jsx-scope': 'error',
    },
  },
]);

Rule Details

Prevent missing React import when using JSX. This rule is implemented as a no-op in rslint because the TypeChecker already handles JSX scope validation.

Original Documentation