no-deprecated-html-element-is
Angular templatesHTMLVue / SvelteVue / Sveltecorrectnessno fixdefault: warnhtml/eslint-plugin-vue-recommended
What it does
Section titled “What it does”Reports an is attribute on a plain HTML element that does not begin with vue: (<tr is="row">). Only in .vue files, where a plain is would make a customized built-in element.
Why it matters
Section titled “Why it matters”In Vue 3 a plain is on an HTML element creates a native customized built-in element, not a Vue component.
To fix, write is="vue:row", or use <component :is>.
Example
Section titled “Example”<template>... <p slot="head" is="row"></p><slot name="x" />... <tr is="vue:row" v-model:title="t" @keyup.enter="k"></tr></template>Configuration
Section titled “Configuration”angular: lint: rules: no-deprecated-html-element-is: warn # off, warn (default), errorhtml: lint: rules: no-deprecated-html-element-is: warn # off, warn (default), errorsvelte: lint: rules: no-deprecated-html-element-is: warn # off, warn (default), errorvue: lint: rules: no-deprecated-html-element-is: warn # off, warn (default), errorEnabled by the presets: html/eslint-plugin-vue-recommended.
Suppress one line with sudsy-disable-next-line no-deprecated-html-element-is in a comment of the file’s language.
Upstream equivalents
Section titled “Upstream equivalents”The same check in other tools; Sudsy reports what each upstream rule reports.
| Tool | Rule | Match |
|---|---|---|
| eslint-plugin-vue | no-deprecated-html-element-is |
full |