Skip to content
On this page

vue/no-template-shadow

disallow variable declarations from shadowing variables declared in the outer scope

  • ⚙️ This rule is included in all of "plugin:vue/vue3-strongly-recommended", "plugin:vue/strongly-recommended", "plugin:vue/vue3-recommended" and "plugin:vue/recommended".

no-template-shadow should report variable definitions of v-for directives or scope attributes if they shadow the variables in parent scopes.

📖 Rule Details

This rule aims to eliminate shadowed variable declarations of v-for directives or scope attributes.

Now loading...

🔧 Options

Nothing.

🚀 Version

This rule was introduced in eslint-plugin-vue v5.0.0

🔍 Implementation