Skip to content

No line break for type annotations in variable declarations exceeding 80 characters #6899

@merlinnot

Description

@merlinnot

Prettier 1.19.0
Playground link

--parser typescript

Input:

const getUnusedAuthorizationHoldDocuments = async (): Promise<DocumentData[]> => {}

Output:

const getUnusedAuthorizationHoldDocuments = async (): Promise<DocumentData[]> => {};

Expected behavior:

const getUnusedAuthorizationHoldDocuments = async (): Promise<
  DocumentData[]
> => {}

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:testsIssues about tests that are not correct, should be added, or similar

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions