Skip to content

no-danger-with-children false positive with newline in element #1262

Closed
@mockdeep

Description

The following reports an error on the no-danger-with-children rule:

<div dangerouslySetInnerHTML={'<span>stuff</span>'}>
</div>

I would expect if there is a newline between the opening and closing tag that the rule would not complain.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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