Shima Ryuhei
Shima Ryuhei
I forgot to format the markdown, so I ran it.
@fisker Thanks for the confirmation. It's a little late now, but regardless of whether it's binary or unary, the line break position should be consistent, right? ``` js // printWidth:...
@fisker If we remove the new line before `foo == null`, we get this. ``` js // printWidth: 18 // input const x = { prop1: foo === null ?...
If such a case exists, I guess I'll have to delete the new line before binaryExpression.
Remove newline before binaryExpression. Existing tests have been affected. It is not possible to make the newline constant for ternary operators without affecting existing tests.
I put the tests for `printWidth: 18` and `printWidth: 25` in a separate folder.