vue/no-deprecated-router-link-tag-prop
disallow using deprecated
tag
property onRouterLink
(in Vue.js 3.0.0+)
- ⚙️ This rule is included in all of
"plugin:vue/vue3-essential"
,"plugin:vue/vue3-strongly-recommended"
and"plugin:vue/vue3-recommended"
.
📖 Rule Details
This rule reports deprecated the tag
attribute on RouterLink
elements (removed in Vue.js v3.0.0+).
🔧 Options
json
{
"vue/no-deprecated-router-link-tag-prop": ["error", {
"components": ['RouterLink']
}]
}
components
(string[]
) ... Component names which will be checked with thetag
attribute. default['RouterLink']
.
Note: this rule will check both kebab-case
and PascalCase
versions of the given component names.
{ "components": ['RouterLink', 'NuxtLink'] }
📚 Further Reading
🚀 Version
This rule was introduced in eslint-plugin-vue v7.20.0