yasuyk / web-beautify

Format HTML, CSS and JavaScript/JSON by js-beautify
GNU General Public License v3.0
219 stars 21 forks source link

web-beautify ignore editorconfig option in .jsbeautifyrc #27

Open hujianxin opened 7 years ago

hujianxin commented 7 years ago

Hi, in my project, there is a .editorconfig file and a .jsbeautifyrc file. The content of jsbeautifyrc is:

{
  "editorconfig": true
}

In command line, I use js-beautify main.js command. And editorconfig will work.But in emacs, I use 'web-beautify-js' command, the editorconfig will not work.

Infomation: Ubuntu 16.04, Emacs 25.1, Spacemacs latest, js-beautify 1.6.4. Thank you!

hujianxin commented 7 years ago

I fount it that js-beautify doesn't support editorconfig when using stdin and seems that shell-command-on-region command use the stdin.