This is a documentation for version 7.0.0-alpha.5.
To check version 6.2.2 go here. To check previous releases go here.

# vue/no-duplicate-attr-inheritance

enforce inheritAttrs to be set to false when using v-bind="$attrs"

# 📖 Rule Details

This rule aims to prevent duplicated attribute inheritance.
This rule to warn to apply inheritAttrs: false when it detects v-bind="$attrs" being used.

<template> <MyInput v-bind="$attrs" /> </template> <script> export default { /* ✓ GOOD */ inheritAttrs: false }
Now loading...
<template> <MyInput v-bind="$attrs" /> </template> <script> export default { /* ✗ BAD */ // inheritAttrs: true (default) }
Now loading...

# Options


# Further Reading

# 🔍 Implementation