-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Labels
help wantedWe're a small group who can't get to every issue promptly. We’d appreciate help fixing this issue!We're a small group who can't get to every issue promptly. We’d appreciate help fixing this issue!lang:javascriptIssues affecting JSIssues affecting JSlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.
Description
Prettier 1.14.3
Playground link
--parser babylonInput:
$var = ($number % 10 >= 2 &&
($number % 100 < 10 || $number % 100 >= 20)
? 1
: 2)
? 0
: 0;Output:
$var = ($number % 10 >= 2 && ($number % 100 < 10 || $number % 100 >= 20)
? 1
: 2)
? 0
: 0;Expected behavior:
$var = ($number % 10 >= 2 && ($number % 100 < 10 || $number % 100 >= 20)
? 1
: 2)
? 0
: 0;Maybe even better output, hard to say what will be looks good, but indent should be don't loose.
j-f1 and fbartho
Metadata
Metadata
Assignees
Labels
help wantedWe're a small group who can't get to every issue promptly. We’d appreciate help fixing this issue!We're a small group who can't get to every issue promptly. We’d appreciate help fixing this issue!lang:javascriptIssues affecting JSIssues affecting JSlocked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.Please open a new issue and fill out the template instead of commenting.