Skip to content

Extra indentation in generic parameter #5431

@kassens

Description

@kassens

Prettier 1.15.1
Playground link

--parser babylon
--print-width 40

Input:

export interface Foo
  extends Bar<
    SomeLongType,
    ToBreakLine,
  > {
  field: number;
}

Output:

export interface Foo
  extends Bar<
      SomeLongType,
      ToBreakLine
    > {
  field: number;
}

Expected behavior:
The input was formatted with prettier 1.14.3, the extra indentation that 1.15.1 adds seems unnecessary.

Metadata

Metadata

Assignees

Labels

lang:flowIssues affecting Flow-specific constructs (not general JS issues)lang:typescriptIssues affecting TypeScript-specific constructs (not general JS issues)locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.status:has prIssues with an accompanying pull request. These issues will probably be fixed soon!

Type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions