prettier
9c67e7b7 - JavaScript: Fix indentation for binary expressions with trailing comments (#8476)

Commit
5 years ago
JavaScript: Fix indentation for binary expressions with trailing comments (#8476) * Modify to align binaryish expression with trailing comment * Add tests * Add comment * Add test * Add changelog * Fix by lint * Modify to move transformation to printBinaryishExpressions * Remove unnecessary new line * Fix hasTrailingCommentInBinaryish * Add shouldReturnParts option to printComments * Add tests from review * Fix by lint * Extract and use normalizeParts * Group CallExpression when parent node is binaryish * Fix by lint * Remove unnecessary change * Wrap the doc of most left node with group * Add tests * Update pr-8476.md Co-authored-by: Georgii Dolzhykov <thorn.mailbox@gmail.com>
Author
Parents
Loading