Re:Prettier 2.0 – Opinionated JavaScript formatter
by amarshall on Monday March 23, 2020 @12:11AM
(#22661193)
To be fair, that's more of a JSON problem than a JS one. FWIW, JSON is also missing quote-less keys, object literal shorthand, non-decimal numbers, values that are non-simple literals, and probably a bunch else from JS object syntax.
Just `JSON.stringify` whatever object it is instead.
Just `JSON.stringify` whatever object it is instead.