Disallow usage of unknown elements (no-unknown-elements
)
This rule requires all elements to have a corresponding metadata element describing its content model.
All HTML5 elements are bundled and can be used with:
"extends": ["html5"]
For custom elements (and framework components) you need supply your own metadata.
Rule details
Examples of incorrect code for this rule:
<custom-element></custom-element>
Examples of correct code for this rule:
<div></div>