Skip to content

Extra space in flow type #1724

@kassens

Description

@kassens

Input

type Test = $ReadOnlyArray<{|
  k: 1
|} | {|
  k: 2
|}>;

Output:

type Test = $ReadOnlyArray<

    | {|
        k: 1
      |}
    | {|
        k: 2
      |}
>;

Note the empty line 2 and excessive indentation.

Parser: either

Metadata

Metadata

Assignees

No one assigned

    Labels

    locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.priority:facebook blockerIssues that block Facebook from upgrading Prettier. (Facebook is a major Prettier supporter)

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions