DocumentationRulesno-duplicate-jsx-props

no-duplicate-jsx-props

Full Name in eslint-plugin-react-x

react-x/no-duplicate-jsx-props

Full Name in @eslint-react/eslint-plugin

@eslint-react/no-duplicate-jsx-props

Features

🔍

Presets

  • core
  • recommended

What it does

This rule prevents the use of duplicate props in JSX elements.

Examples

Failing

<Hello name="John" name="Doe" />;

Passing

<Hello name="John" />;

Implementation