Skip to content

docs: fix self-closing component examples - #4020

Open
ColumbusLabs wants to merge 1 commit into
jsx-eslint:masterfrom
ColumbusLabs:codex/fix-self-closing-comp-docs
Open

docs: fix self-closing component examples#4020
ColumbusLabs wants to merge 1 commit into
jsx-eslint:masterfrom
ColumbusLabs:codex/fix-self-closing-comp-docs

Conversation

@ColumbusLabs

Copy link
Copy Markdown

Closes #3852.

Moves the empty <div></div> example into the default incorrect examples. With the default { html: true } option, the rule reports that form and requires <div />.

This documentation-only correction was AI-assisted, then validated against the rule defaults and runtime behavior and independently reviewed.

Validation:

  • npm run lint (0 errors; 47 pre-existing warnings)
  • focused self-closing-comp suite (235 passing)
  • full unit suite on the supported ESLint 7 / parser 4 matrix (29,218 passing)
  • runtime behavior probe
  • git diff --check

Signed-off-by: ColumbusLabs <287001685+ColumbusLabs@users.noreply.github.com>
@ColumbusLabs
ColumbusLabs force-pushed the codex/fix-self-closing-comp-docs branch from 6f51dbe to 9f13c1d Compare August 8, 2026 21:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Inconsistent documentation: self-closing-comp.md

1 participant