Skip to content

[New] no-danger: support React.createElement#4012

Open
yumevex wants to merge 1 commit into
jsx-eslint:masterfrom
yumevex:fix/no-danger-react-create-element
Open

[New] no-danger: support React.createElement#4012
yumevex wants to merge 1 commit into
jsx-eslint:masterfrom
yumevex:fix/no-danger-react-create-element

Conversation

@yumevex
Copy link
Copy Markdown

@yumevex yumevex commented May 20, 2026

This PR adds support for detecting dangerouslySetInnerHTML in React.createElement calls to the no-danger rule, matching the behavior of the no-danger-with-children rule.

Fixes #4004

@ljharb ljharb changed the title [Fix] no-danger: support React.createElement [New] no-danger: support React.createElement May 20, 2026
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.

no-danger does not report dangerouslySetInnerHTML usage in React.createElement

1 participant