close-style
This rule enforces a consistent closing style for HTML elements — either self-closing (<br />) or explicit close tags (<br>).
How to use
module.exports = {
rules: {
"@html-eslint/close-style": "error",
},
};
Rule Details
Examples of incorrect code for this rule:
<!-- TODO: add examples once options are finalized -->
Examples of correct code for this rule:
<!-- TODO: add examples once options are finalized -->