vue/no-deprecated-html-elements
eslint-plugin-vue
No autofix
eslint.config.js
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/no-deprecated-html-elements": "error",
},
},
]; <strike>old price</strike>
<center>text</center>
<font color="red">text</font>
<marquee>news</marquee>
</template> <strike>old price</strike>
</template><s>old price</s>
<span class="centered">text</span>
<Center>component</Center>
<font is="vue:my-font">component</font><center>registered component</center>
<font>registered component</font>
<marquee>registered component</marquee>Examples from the ESLint documentation.
No tracked preset enables this rule, so it has no reach yet.
None of the tracked presets enable this rule. Turn it on with the config below.
vue/no-deprecated-html-elements
eslint-plugin-vue
import vue from "eslint-plugin-vue";
export default [
{
plugins: { vue },
rules: {
"vue/no-deprecated-html-elements": "error",
},
},
];Oxlint does not have this rule.
Biome does not have this rule.
Disallow custom modifiers on v-model used on the component
Enforce inheritAttrs to be set to false when using v-bind="$attrs"
Disallow duplication of class names in class attributes
Disallow the <template> <script> <style> block to be empty