prettier-plugin-coffeescript icon indicating copy to clipboard operation
prettier-plugin-coffeescript copied to clipboard

Parenthesizing of ?= should match that of =

Open helixbass opened this issue 6 years ago • 1 comments

This:

Object.assign token.data ?= {}, data

is formatted like the source, while this:

Object.assign token.data = {}, data

is formatted like

Object.assign (token.data = {}), data

Seems like they should be identically formatted wrt parenthesizing

helixbass avatar Mar 29 '19 19:03 helixbass

Looks like I intentionally special-cased non-= assignments eg ?=, so maybe just leave as-is?

helixbass avatar Mar 29 '19 20:03 helixbass