Skip to content

[feature request] react/jsx-newline #3033

@adrienharnay

Description

@adrienharnay

Hi,

I would find it interesting to provide a new option to the react/jsx-newline rule, so that there is a newline between JSX expressions ONLY if they are multiline.

I find that single line JSX expressions are easier to read and don't require a space between them, but multiline expressions can quickly become hard to read.

Would anyone be eager to help me implement this feature, as this would be the first rule I would contributing to the project?

Thanks in advance!

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