Skip to content

jsx-curly-spacing autofix deletes comments #648

Closed
@lencioni

Description

@lencioni

If I have some JSX like:

<div>
  { /* comment */ }
</div>

the autofixer will change it to:

<div>
  {}
</div>

but it should change it to:

<div>
  {/* comment */}
</div>

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions