Skip to content

JavaScript: CallExpression on right of assignment is printed in a different way from similar MembarExpression. #6447

@sosukesuzuki

Description

@sosukesuzuki

Prettier 1.18.2
Playground link

# Options (if any):
--print-width=10

Input:

const bar = long.long;
const foo = long.long();

Output:

const bar =
  long.long;
const foo = long.long();

Expected behavior:

const bar =
  long.long;
const foo =
  long.long();

Metadata

Metadata

Assignees

No one assigned

    Labels

    lang:javascriptIssues affecting JSlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.type:duplicateIssues that are a duplicate of a previous issue

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions