vue/no-deprecated-html-elements
disallow using deprecated HTML elements
- ❗ This rule has not been released yet.
📖 Rule Details
This rule reports HTML elements that the HTML Standard lists as non-conforming features, such as <center>, <font>, <marquee> and <strike>. The list ships with eslint-plugin-vue and is updated from the HTML Standard, so you don't have to maintain it yourself.
Besides being obsolete, all of these elements except <param> are unknown to Vue 3's template compiler, which resolves them as components first and warns about it in development.
The rule goes by the tag name as written in the template, not by component registration. PascalCase tags such as <Center> or <Font> are not reported. Lowercase deprecated tag names such as <center> are reported even if a component with that name is registered; use the ignores option for those. Elements that render a component through is, :is or v-is are skipped.
🔧 Options
{
"vue/no-deprecated-html-elements": ["error", {
"ignores": []
}]
}ignores(string[]) ... The element names to ignore, matched against the tag name as written in the template. You can set the regexp by writing it like"/^name/".
ignores: ["center", "/^(font|marquee)$/"]