Skip to content

'react/jsx-wrap-multilines' behaves strange #1469

Closed
@SidKwok

Description

@SidKwok

The rule tells me that this is good:

var hello = (
    <div>
      <p>Hello</p>
    </div>
)

but this is also accepted:

var hello = (<div>
  <p>Hello</p>
</div>)
'react/jsx-wrap-multilines': 'error'

Did I miss something?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions