Skip to content

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

@nchevobbe

Description

@nchevobbe

The no-danger rules only reports dangerouslySetInnerHTML when it's used in JSX, but not when it's used in React.createElement

To be fair, it's mentioned in the rule description, but it took me a bit to see this.
Also, the similar no-danger-with-children rule does report usage in React.createElement, so it would be nice to be consistent here.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions