# 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>
Now loading...

# 🔧 Options

Nothing.

# 🔍 Implementation

Last Updated: 10/26/2021, 7:23:11 AM