Skip to content

Rule proposal: indentation of closing jsx tag  #1206

Closed
@rsolomon

Description

Not to be confused with the closing bracket, I would like to enforce the location of a closing jsx tag when its children also live on a new line.

For example, the following would fail:

<MyComponent
  prop1="foo"
  prop2="bar">
  {content}</MyComponent>

The following would pass:

<MyComponent
  prop1="foo"
  prop2="bar">
  {content}
</MyComponent>

This would also pass:

<MyComponent prop1="foo">{content}</MyComponent>

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