Skip to content

Unnecessary split between named argument and => function expression #1668

@chris-NR

Description

@chris-NR

The new formatter has changed the location of added line breaks within a parameter list to immediately after the named parameter token. This has resulted in some significant readability issues compared to the previous formatter. Here are two examples:

The named parameter 'child' followed by a switch expression

Before

Image

After

Image

The named parameter 'children' followed by a list literal

Before

Image

After

Image

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