* Break assignment whose rhs is wrapped unary expression * Add changelog * Recursive * Refactor * With loop * Use if * Update assignment.js * Update assignment.js This rewrite not totally equal, but should safe. * Revert "Update assignment.js" This reverts commit 14549442b7726461b0e39d0b1077cdbb00195e73. * Try move parser check upper * Simplify `switch` * Simplify * Move parser check to top Co-authored-by: fisker Cheung <lionkay@gmail.com>
444 B
444 B
Break assignment whose rhs is wrapped by an unary expression (#10158 by @sosukesuzuki)
// Input
const loooooooooooooooooooooooooong = !looooooooooooooong.looooooooooooooong.loooooong;
// Prettier stable
const loooooooooooooooooooooooooong = !looooooooooooooong.looooooooooooooong
.loooooong;
// Prettier main
const loooooooooooooooooooooooooong =
!looooooooooooooong.looooooooooooooong.loooooong;