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:

error: Unknown element <custom-element> (no-unknown-elements) at inline:1:1:
> 1 | <custom-element></custom-element>
    | ^^^^^^^^^^^^^^^

1 error found.

Examples of correct code for this rule: