vue/no-deprecated-router-link-tag-prop
disallow using deprecated
tagproperty onRouterLink(in Vue.js 3.0.0+)
- ⚙️ This rule is included in all of
"plugin:vue/essential",*.configs["flat/essential"],"plugin:vue/strongly-recommended",*.configs["flat/strongly-recommended"],"plugin:vue/recommended"and*.configs["flat/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 thetagattribute. 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