noDuplicateJsxProps (since v13.0.0)
Prevents JSX properties to be assigned multiple times.
Examples
Invalid
<Hello name="John" name="John" />
nursery/noDuplicateJsxProps.js:1:8 lint/nursery/noDuplicateJsxProps ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✖ This JSX property is assigned multiple times.
> 1 │ <Hello name="John" name="John" />
│ ^^^^^^^^^^^
2 │
ℹ This attribute is assigned again here.
> 1 │ <Hello name="John" name="John" />
│ ^^^^^^^^^^^
2 │
<label xml:lang="en-US" xml:lang="en-US"></label>
nursery/noDuplicateJsxProps.js:1:8 lint/nursery/noDuplicateJsxProps ━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
✖ This JSX property is assigned multiple times.
> 1 │ <label xml:lang="en-US" xml:lang="en-US"></label>
│ ^^^^^^^^^^^^^^^^
2 │
ℹ This attribute is assigned again here.
> 1 │ <label xml:lang="en-US" xml:lang="en-US"></label>
│ ^^^^^^^^^^^^^^^^
2 │
Valid
<Hello firstname="John" lastname="Doe" />
<label xml:lang="en-US" lang="en-US"></label>