jsx-closing-tag-location
Configuration
rslint.config.ts
Rule Details
Enforce the closing tag location for multiline JSX elements. The closing tag should match the indentation of the opening tag.
Examples of incorrect code for this rule:
Examples of correct code for this rule:
Options
"tag-aligned"(default): Closing tag must be aligned with the opening tag's column position."line-aligned": Closing tag must be aligned with the indentation of the line containing the opening tag (useful when the opening tag is not at the start of the line, e.g.,var x = <div>).