NOTE - First and foremost there is no direct single package utpill now that does >the job for you. If you think installing babel-sublime will do then this then you are wrong, it enables syntax highlighting but does not format the code for you.
Follow these steps on ST3
- Install jsfmt package
- jsfmt is used for javascript formatting in sublime text. But as we have jsx files with different syntax we will need additional plugins that will help jsfmt format jsx files as well. These additional plugins are esformatter-jsx and esformatter
- Open up the Packages folder by selecting Browse Packages option from Preferences menu and navigate to jsfmt package folder
- run below command which installs the 2 plugins we listed above