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/jsx-props-no-spread-multi.md.
close

jsx-props-no-spread-multi

Added in v0.6.5

Configuration

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

export default defineConfig([
  reactPlugin.configs.recommended,
  {
    rules: {
      'react/jsx-props-no-spread-multi': 'error',
    },
  },
]);

Rule Details

Disallow spreading the same JSX props identifier multiple times in one element.

Examples of incorrect code for this rule:

<App {...props} myAttr="1" {...props} />

Examples of correct code for this rule:

<App myAttr="1" {...props} />
<App {...props} myAttr="1" />

Options

This rule has no options.

Original Documentation