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

change cwd so standard respects package.json #56

Closed evollu closed 7 years ago

evollu commented 7 years ago

change cwd to file's folder so it respects package.json's setting like parse and plugins should solve #31

bcomnes commented 7 years ago

Oh crap, was the CWD not changing!? Good catch.

evollu commented 7 years ago

sorry mix the commits but my team needs it another issue is that if the content has lint error (like unused property), standard command throw err. As result sublime won't format the code. Should allow formatting to be process but print out the error

javiercr commented 7 years ago

Works for me perfectly! ✨

evollu commented 7 years ago

fixed another issue of windows check. should solve #55 's second issue

bcomnes commented 7 years ago

Testing this now

bcomnes commented 7 years ago

Ok this should be out within the hour.