# 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 (opens new window) 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 (opens new window) instead.
<template>
<!-- ✓ GOOD -->
<div is="vue:MyComponent" />
<component is="MyComponent" />
<!-- ✗ BAD -->
<div v-is="'MyComponent'" />
</template>
# 👫 Related Rules
# 📚 Further Reading
- Migration Guide - Custom Elements Interop (opens new window)
- API - v-is (opens new window)
- API - v-is (Old) (opens new window)
# 🚀 Version
This rule was introduced in eslint-plugin-vue v7.11.0