vue/no-duplicate-attr-inheritance
eslint-plugin-vue
No autofix
eslint.config.js
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/no-duplicate-attr-inheritance": "error",
},
},
];Enforce inheritAttrs to be set to false when using v-bind="$attrs"
No code example for this rule
The linters' documentation does not include one we could extract.
No tracked preset enables this rule, so it has no reach yet.
None of the tracked presets enable this rule. Turn it on with the config below.
vue/no-duplicate-attr-inheritance
eslint-plugin-vue
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/no-duplicate-attr-inheritance": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Disallow duplication of class names in class attributes
Disallow custom modifiers on v-model used on the component
Disallow the <template> <script> <style> block to be empty