# no-duplicate-attr-inheritance

Rule `vue/no-duplicate-attr-inheritance`. Enforce `inheritAttrs` to be set to `false` when using `v-bind="$attrs"`

- Source: vue
- Technologies: Vue
- Kind: style
- Needs type information: no
- Autofix: no
- Reach: 0 weekly downloads of presets that enable it
- Trend: 0% last quarter
- Rank: #2059 by reach

## Linters

| Linter | Rule name | Recommended | Autofix | Details | Docs |
| --- | --- | --- | --- | --- | --- |
| ESLint | `vue/no-duplicate-attr-inheritance` | no | no | package `eslint-plugin-vue` | [docs](https://eslint.vuejs.org/rules/no-duplicate-attr-inheritance.html) |

## Enable it

### ESLint: `eslint.config.js`

```js
import vue from "eslint-plugin-vue";

export default [
  {
    plugins: { vue },
    rules: {
      "vue/no-duplicate-attr-inheritance": "error",
    },
  },
];
```

## Related rules

- [vue/no-deprecated-html-elements](https://lintradar.dev/rules/vue/no-deprecated-html-elements.md): Disallow using deprecated HTML elements
- [vue/no-duplicate-class-names](https://lintradar.dev/rules/vue/no-duplicate-class-names.md): Disallow duplication of class names in class attributes
- [vue/no-custom-modifiers-on-v-model](https://lintradar.dev/rules/vue/no-custom-modifiers-on-v-model.md): Disallow custom modifiers on v-model used on the component
- [vue/no-empty-component-block](https://lintradar.dev/rules/vue/no-empty-component-block.md): Disallow the `<template>` `<script>` `<style>` block to be empty
- [vue/no-bare-strings-in-template](https://lintradar.dev/rules/vue/no-bare-strings-in-template.md): Disallow the use of bare strings in `<template>`
- [vue/no-extra-parens](https://lintradar.dev/rules/vue/no-extra-parens.md): Disallow unnecessary parentheses in `<template>`

---

Web page: https://lintradar.dev/rules/vue/no-duplicate-attr-inheritance. Data from npm and the linters' documentation, collected Dec 4, 2026. Site guide for agents: https://lintradar.dev/llms.txt
