Skip to content

jsx-curly-brace-presence warns incorrectly on trailing whitespace #2427

Closed
@taion

Description

@taion

This is a regression from #2409, cc @vedadeepta @ljharb

Per #2409 (comment), when running autofix with this change, I now get e.g.

           <div>
-            Confirm{' '}
+            Confirm
             <button type="button" onClick={this.onClickYes}>

The rule may be correct in isolation, but this interacts very poorly with the standard automatic removal of trailing whitespace.

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