Skip to content

react/jsx-closing-bracket-location not working #31

Open
@Richienb

Description

@Richienb

Currently, the rule requires tags to be aligned:

'react/jsx-closing-bracket-location': [
'error',
{
nonEmpty: 'tag-aligned',
selfClosing: false
}
],

In this situation, no amount of tabs would achieve that (line 6):

{via ? <div style={{
	display: 'flex',
	flexDirection: 'column',
	textAlign: 'center',
}}
       >
	<div>{destination}</div>
	<div>via {via}</div>
</div> : <span>{longName}</span>}

7 spaces worth of space are needed which can't be represented in tabs.

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