Skip to content

Don't indent multi-line record typedefs #1651

Closed
@mernen

Description

@mernen

The new formatter (#1253) changed the formatting of record typedefs, adding quite a bit of indentation:

Old formatter:

typedef ExampleRecordTypedef = (
  String firstParameter,
  int secondParameter,
  String thirdParameter,
  String fourthParameter,
);

New formatter:

typedef ExampleRecordTypedef =
    (
      String firstParameter,
      int secondParameter,
      String thirdParameter,
      String fourthParameter,
    );

This style seems a net positive to me in many circumstances, but specifically for records I see it mostly as a downgrade (unnecessary indentation and code churn), and I'd like to propose to special-case it.

This is similar in style to #1545/#1634, but for a completely different part of the syntax, so I figured it should be filed separately.

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