Skip to content

[Bug]: Autofix do not work in react/jsx-wrap-multilines #3545

Closed

Description

Is there an existing issue for this?

  • I have searched the existing issues and my issue is unique
  • My issue appears in the command-line and not only in the text editor

Description Overview

export default () => <h1>
    <span>
        hello
    </span>
</h1>;

Error reported:
image

No fix applied

Expected Behavior

Auto fix correct code to:

export default () => (
    <h1>
        <span>
            hello
        </span>
    </h1>
);

eslint-plugin-react version

v7.32.2

eslint version

v8.35.0

node version

v18.14.2

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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