Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 1.63 KB

no-deprecated-v-is.md

File metadata and controls

54 lines (36 loc) · 1.63 KB
pageClass sidebarDepth title description since
rule-details
0
vue/no-deprecated-v-is
disallow deprecated `v-is` directive (in Vue.js 3.1.0+)
v7.11.0

vue/no-deprecated-v-is

disallow deprecated v-is directive (in Vue.js 3.1.0+)

  • ⚙️ This rule is included in all of "plugin:vue/vue3-essential", "plugin:vue/vue3-strongly-recommended" and "plugin:vue/vue3-recommended".
  • 🔧 The --fix option on the command line can automatically fix some of the problems reported by this rule.

📖 Rule Details

This rule reports deprecated v-is directive in Vue.js v3.1.0+.

Use is attribute with vue: prefix instead.

<template>
  <!-- ✓ GOOD -->
  <div is="vue:MyComponent" />
  <component is="MyComponent" />
  
  <!-- ✗ BAD -->
  <div v-is="'MyComponent'" />
</template>

👫 Related Rules

📚 Further Reading

🚀 Version

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

🔍 Implementation