Closed sgerace closed 2 years ago
Same for a?.b
syntax, jsFormat transforms it to a ? .b
which is incorrect.
This is fixed in the upstream library. It just needs updating here.
Thank you @bitwiseman!
It's been almost a year since this was first reported and the upstream library was updated in May (see https://github.com/beautify-web/js-beautify/issues/1934). Any chance we can get an updated release? Thanks!
I've created a pull request to incorporate the latest version of js-beautify, which I've confirmed addresses this issue.
I'm currently using JsFormat v2019.01.20.01.35.14 with Sublime Text v3.2.2, Build 3211 and if I attempt to format a file containing BigInt literals, for example:
it splits the "1" from the "n" into:
which is invalid syntax.