Co-authored-by: autofix-ci[bot] <114827586+autofix-ci[bot]@users.noreply.github.com>
369 B
369 B
Improve do..while print in no-semi mode (#18851 by @fisker)
// Input
do {
doStuff()
} while (1)
// comment
;[foo, bar].forEach(doStuff)
// Prettier stable
do {
doStuff()
} while (
1
// comment
)
;[foo, bar].forEach(doStuff)
// Prettier main
do {
doStuff()
} while (1)
// comment
;[foo, bar].forEach(doStuff)