Skip to content

Keep short promise chains indented #3594

@n1k0

Description

@n1k0

Prettier 1.9.2
Playground link

Input:

foo
  .then(() => blah())
  .then(() => blah())

Output:

foo.then(() => blah()).then(() => blah());

Expected behavior:

I'd expect the indentation intent (for obvious legibility purpose) to be kept as is.

(Sorry if that's a duplicate)

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions