Ugly formatting of JS arithmetic operators with chained method calls #8603
Labels
area:binary expressions
area:member chains
lang:javascript
Issues affecting JS
status:needs discussion
Issues needing discussion and a decision to be made before action can be taken
Prettier 2.0.5
Playground link
Input:
Output:
Expected behavior:
I'd like Prettier to format this code the same way as my input was formatted initially. When the code has four levels of nesting (which is a common case when using ES6 classes for example), Prettier can format expression which has just a single '+' operator this way:
The text was updated successfully, but these errors were encountered: