Skip to content

Prettier formats a sensible one-liner into seven lines #5769

@mattrussell-sonocent

Description

@mattrussell-sonocent

Prettier 1.15.3
Playground link

--parser babylon

Input:

eventStore.update(id, _.flow(updater, incrementVersion))

Output:

eventStore.update(
  id,
  _.flow(
    updater,
    incrementVersion
  )
);

Expected behavior:
Unchanged:

eventStore.update(id, _.flow(updater, incrementVersion))

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:needs discussionIssues needing discussion and a decision to be made before action can be taken

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions