-
-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Keep short promise chains indented #3594
Copy link
Copy link
Open
Labels
area:member chainslang:javascriptIssues affecting JSIssues affecting JSstatus:needs discussionIssues needing discussion and a decision to be made before action can be takenIssues needing discussion and a decision to be made before action can be taken
Description
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)
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
area:member chainslang:javascriptIssues affecting JSIssues affecting JSstatus:needs discussionIssues needing discussion and a decision to be made before action can be takenIssues needing discussion and a decision to be made before action can be taken