no-obsolete-tags
This rule disallows the use of obsolete tags in HTML5.
Why?
The following elements are obsolete in HTML5. These tags are discouraged and should be avoided.
applet, acronym, bgsound, dir, frame, frameset, noframes, isindex, keygen, listing, menuitem, nextid, noembed, plaintext, rb, rtc, strike, xmp, basefont, big, blink, center, font, marquee, multicol, nobr, spacer, tt
How to use
module.exports = {
rules: {
"@html-eslint/no-obsolete-tags": "error",
},
};
Rule Details
This rule disallows using obsolete tags.
Examples of incorrect code for this rule:
<applet></applet>
<dir></dir>