Skip to content

Rule for only one jsx react element per line? #1491

@TSMMark

Description

@TSMMark

I would like to disallow multiple elements/components being opened on one line:

<Outer><Inner/></Outer>

and fix to:

<Outer>
  <Inner/>
</Outer>

I searched all over and could not find something like this. Thank you.

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