bcomnes / sublime-standard-format

:sparkles: Runs standard --fix against the javascript in your ST3 window on save or manually.
https://packagecontrol.io/packages/StandardFormat
MIT License
60 stars 21 forks source link

Fix formatting regression #78

Closed bcomnes closed 3 years ago

bcomnes commented 3 years ago

Our changes to allow for additional formatters also busted our primary goal of formatting withs standard. This allows for both to still work. Please open more issues if you run into additional problems.

Basically it comes down to :

Not being able to reconcile the two, I simply check for stdout > 0 and print an error otherwise. Seems to work.

cc @vonas if you have any thoughts.

Closes https://github.com/bcomnes/sublime-standard-format/issues/77

Going to land immediately since its fixes a major regression, but open to any additional ideas or input.