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 :
standard returns non 0 on a successful format. On stdout, it contains the format. On standard error, it contains the errors it fixed.
eslint_d I guess returns 0 on a successful format.
Not being able to reconcile the two, I simply check for stdout > 0 and print an error otherwise. Seems to work.
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.