Skip to content

react/jsx-curly-brace-presence deleting {' '} #2434

Closed
@mankittens

Description

@mankittens

The latest update to eslint-plugin-react says that {' '} violates react/jsx-curly-brace-presence. Running --fix will delete all instances of {' '}.

I don't believe this is appropriate, because in some cases, this is the only way to retain a regular space character between elements. Sure there is &nbsp; and <span> </span>, but those aren't quite the same.

Thoughts?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions