close

react-in-jsx-scope

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