💼 This rule is enabled in the following configs: strict-gjs, strict-gts.
🔧 This rule is automatically fixable by the --fix CLI option.
Requires void elements to be self-closing.
Void elements (like <img>, <br>, <input>, etc.) should be self-closing for consistency and to match HTML5 conventions.
Examples of incorrect code for this rule:
<template>
<img src="foo.jpg">
</template><template>
<br>
</template><template>
<input type="text">
</template>Examples of correct code for this rule:
<template>
<img src="foo.jpg" />
</template><template>
<br />
</template><template>
<input type="text" />
</template>