Skip to content

Typescript types with generics does not respect printWidth #9874

@olegshilov

Description

@olegshilov

Prettier 2.2.1
Playground link

--parser typescript
--print-width 80

Input:

export type RequestNextDealAction = BaseAction<DealsActionTypes.REQUEST_NEXT_DEAL>;

Output:

export type RequestNextDealAction = BaseAction<DealsActionTypes.REQUEST_NEXT_DEAL>;

Expected behavior:

export type RequestNextDealAction = BaseAction<
  DealsActionTypes.REQUEST_NEXT_DEAL
>;

Metadata

Metadata

Assignees

No one assigned

    Labels

    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.

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions