# san/no-duplicate-attributes
disallow duplication of attributes
- ⚙️ This rule is included in all of
"plugin:san/essential"
,"plugin:san/strongly-recommended"
and"plugin:san/recommended"
.
When duplicate arguments exist, only the last one is valid. It's possibly mistakes.
# 📖 Rule Details
This rule reports duplicate attributes.
<template>
<!-- ✓ GOOD -->
<MyComponent foo="abc" />
<MyComponent class="abc" :class="def" />
<!-- ✗ BAD -->
<MyComponent foo="abc" foo="def" />
<MyComponent class="abc" class="def" />
</template>
# 🔧 Options
Nothing.