# vue/no-deprecated-router-link-tag-prop

disallow using deprecated tag property on RouterLink (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

{
  "vue/no-deprecated-router-link-tag-prop": ["error", {
    "components": ['RouterLink']
  }]
}
  • components (string[]) ... Component names which will be checked with the tag attribute. default ['RouterLink'].

Note: this rule will check both kebab-case and PascalCase versions of the given component names.

# 📚 Further Reading

# 🚀 Version

This rule was introduced in eslint-plugin-vue v7.20.0

# 🔍 Implementation

Last Updated: 10/20/2021, 5:14:26 AM