Skip to content

react/jsx-one-expression-per-line #2467

Closed
@rhalaly

Description

@rhalaly

Similar to #1775 ...

The bug with the --fix part of this rule is still there, and the PR did not fix it.

Rules

"react/jsx-one-expression-per-line": "error",
"react/jsx-indent": [
     "error",
      4
],

Original Code

return (
    <div>text</div>
);

Actual (after fix)

return (
    <div>
text
    </div>
);

Expected

return (
    <div>
        text
    </div>
);

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