JS.VUE.NO.DEPRECATED.HTML.ELEMENT.IS

Disallow using deprecated the 'is' attribute on HTML elements (in Vue.js 3.0.0+)

Rule Details

This rule reports deprecated the is attribute on HTML elements (removed in Vue.js v3.0.0+).

See Migration Guide - Custom Elements Interop (https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html#customized-built-in-elements) for more details.

{'vue/no-deprecated-html-element-is': ['error']}

Copy
<template>
  <!-- GOOD -->
  <div />
  <component is="foo">

  <!-- BAD -->
  <div is="foo" />
  <div :is="foo" />
</template>

Options

Nothing.

Further Reading

  • Migration Guide - Custom Elements Interop (https://v3-migration.vuejs.org/breaking-changes/custom-elements-interop.html#customized-built-in-elements)
  • Vue RFCs - 0027-custom-elements-interop (https://github.com/vuejs/rfcs/blob/master/active-rfcs/0027-custom-elements-interop.md)

The content on this page is adapted from the ESLint User Guide. Copyright © OpenJS Foundation and other contributors, www.openjsf.org. All rights reserved. https://eslint.org/docs/rules/