Skip to content

No line break for type annotations in variable declarations exceeding 80 characters and initialized with function result #9172

@liolick

Description

@liolick

Prettier 2.1.1
Playground link

--parser babel

Input:

const firestorePersonallyIdentifiablePaths: Array<Collections.Users.Entity> = somefunc();

Output:

const firestorePersonallyIdentifiablePaths: Array<Collections.Users.Entity> = somefunc();

Expected behavior:

const firestorePersonallyIdentifiablePaths: Array<Collections.Users.Entity> = 
    somefunc();

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.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions