piuccio / sublime-esformatter

JavaScript formatter plugin for Sublime Text
MIT License
28 stars 20 forks source link

support locally installed esformatter #66

Closed felixhao28 closed 8 years ago

felixhao28 commented 8 years ago

I (and I believe many other people) install esformatter as a local dev-dependency (it is easier for team collaboration). With this PR, sublime-esformatter will first search for locally installed esformatter (node_modules/esformatter/bin/esformatter) and then global "esformmatter" command.

felixhao28 commented 8 years ago

Just found someone with the same issue: #64

piuccio commented 8 years ago

looks nice, just out of curiosity, are you using mac / win / linux?

felixhao28 commented 8 years ago

Windows. And all my colleagues use win too so I only tested it on windows.

piuccio commented 8 years ago

great I can test on mac

piuccio commented 8 years ago

@felixhao28 thanks for this and sorry if it took so long. I tested on mac and works fine.