← Back

vue/no-duplicate-attributes warning

When duplicate arguments exist, only the last one is valid

Examples

❌  Incorrect

<template>
    <my-component
        :foo="bar"
        foo="xyz"
    ></my-component>
</template>

✅  Correct

<template>
    <my-component
        class="bar"
        :class="{ foo: true }"
        abc="xyz"
    ></my-component>
</template>