lodash-template/no-duplicate-attributes
disallow duplication of HTML attributes. (ex. 🆖
<div foo foo>
)
- ⚙️ This rule is included in
"plugin:lodash-template/recommended-with-html"
and"plugin:lodash-template/all"
.
Rule Details
This rule reports duplicate attributes.
When duplicate arguments exist, only the last one is valid. It's possibly mistakes.
html
<% /* eslint "lodash-template/no-duplicate-attributes": "error" */ %>
<!-- ✓ GOOD -->
<div
foo="abc"
></div>
<!-- ✗ BAD -->
<div
foo="abc"
foo="def"
></div>