JSX Formatting


Hi there, I use language-babel for react projects, and traditional used atom-beautify for my code formatting tool. However this tool just blows out files with JSX in them. What are other people using? I know I could install the react package, but then I loose the ES6 features of language-babel (language-babel and react have a conflict - so it seems to be one or the other).



I think jsx support in atom-beautify is provided by pretty-diff. By default this is enabled for files ending .jsx but not .js files.

You can either use .jsx files or change the default beautifier in the atom-beautifier’s JS settings to pretty-diff.