How to configure atom-beautify package to format with babel/jsx javascript files?

Damien Leroux picture Damien Leroux · May 14, 2016 · Viewed 16.1k times · Source

I searched for a package to auto-indent and beautify my React/babel code. I just tried atom-beautify which seems to have good feeback on Atom.

But the result on an usual babel file is not good enough: "HTML tag" doesn't indent as wanted. Has anyone tried to use atom-beautify with babel?

Answer

David Meents picture David Meents · May 15, 2016

I currently use the plugins language-babel, react, and autoclose-html to handle this for me with no issues.

https://atom.io/packages/autoclose-html

https://atom.io/packages/language-babel

https://atom.io/packages/react

Hope this helps!