Creating JSX elements with duplicate props can cause unexpected behavior in your application.
The following patterns are considered warnings:
<Hello name="John" name="John" />;
The following patterns are not considered warnings:
<Hello firstname="John" lastname="Doe" />;
...
"jsx-no-duplicate-props": [<enabled>, { "ignoreCase": <boolean> }]
...
When true
the rule ignores the case of the props. Default to false
.
If you are not using JSX then you can disable this rule.