Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Fix ternary format in function call #4368
This fixes #4338. The formatting of conditional expression in functional calls was hard to read. This PR results in the following format:
fn( bifornCringerMoshedPerplexSawder, askTrovenaBeenaDependsRowans, glimseGlyphsHazardNoopsTieTie === averredBathersBoxroomBuggyNurl && anodyneCondosMalateOverateRetinol ? annularCooeedSplicesWalksWayWay : kochabCooieGameOnOboleUnweave );
While it would be preferable to indent the last two operands of the ternary expression, it seemed to me like that would require substantial refactoring of the printer because the last two operands are not in the scope of the test operand and therefore do not inherit the indentation level. At least this makes it easier to see how many args there are.
This is my first Prettier PR, so apologies for any oversights. Happy to try to get those last two lines to indent if anyone has any ideas for how to proceed.