Skip to content

jsx-closing-bracket-location props-aligned/after-props documentation wrong #612

Closed
@anthonator

Description

@anthonator

Not sure if this is a bug or documentation issue. Either way something needs to be switched.

Here's the rule I'm using:

"react/jsx-closing-bracket-location": [2, "after-props"]

to make this valid:

<Hello 
  firstName="John"
  lastName="Smith" />;

Documentation states the opposite.

// 'jsx-closing-bracket-location': [1, 'after-props']
<Hello 
  firstName="John"
  lastName="Smith"
  />;
// 'jsx-closing-bracket-location': [1, 'props-aligned']
<Hello 
  firstName="John"
  lastName="Smith" />;

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