Skip to content

Calls to functions or methods named “compose” are always split into multiple lines. #5969

@brainkim

Description

@brainkim

Prettier 1.16.4
Playground link

--parser flow

Input:

compose(a, b, c);
// "compose backwards"
esopmoc(a, b, c);
poop.compose(a, b, c);
poop.esopmoc(a, b, c);

Output:

compose(
  a,
  b,
  c
);
// "compose backwards"
esopmoc(a, b, c);
poop.compose(
  a,
  b,
  c
);
poop.esopmoc(a, b, c);

Expected behavior:

compose(a, b, c);
// "compose backwards"
esopmoc(a, b, c);
poop.compose(a, b, c);
poop.esopmoc(a, b, c);

🤔🧐🤪

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.status:has prIssues with an accompanying pull request. These issues will probably be fixed soon!status:needs discussionIssues needing discussion and a decision to be made before action can be taken

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions