self-closing-comp
Configuration
rslint.config.ts
Rule Details
Enforce components without children to be self-closing. This applies to both custom components and HTML elements.
Examples of incorrect code for this rule:
Examples of correct code for this rule:
Options
component(default:true): Whether to enforce self-closing for custom components.html(default:true): Whether to enforce self-closing for HTML elements.