Skip to content

react/wrap-multilines conflicts with no-extra-parens #3

Closed
@richardscarrott

Description

@richardscarrott

Imo we should wrap multiline JSX with parens to keep the mark-up balanced, e.g.

return (
    <div>
        <h1>Hello world</h1>
    </div>
);

But in addition it's nice to error when extraneous parens are used elsewhere. We need to work out how we can have best of both.

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