Skip to content

"jsx.multiLineParens": "never" does not remove parenthesis added by "jsx.multiLineParens": "prefer" #760

@SamuelT-Beslogic

Description

@SamuelT-Beslogic

I recently switched from "jsx.multiLineParens": "prefer" to "jsx.multiLineParens": "never", however I noticed that now both of the following are acceptable to dprint.
(red/left is before with prefer | green/right is after with never after manually removing parens)

Image Image

I'd like to be able to automatically format this.

In the mean time I'll check if there's an ESLint rule in https://v4.eslint.style/rules that can remove these parenthesis without conflicting elsewhere.

My config: https://github.com/BesLogic/shared-configs/blob/main/.dprint.jsonc

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