DocumentationRulesjsx-no-duplicate-props

jsx-no-duplicate-props

Full Name in eslint-plugin-react-x

react-x/jsx-no-duplicate-props

Full Name in @eslint-react/eslint-plugin

@eslint-react/jsx-no-duplicate-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" />;