royriojas / esformatter-jsx

esformatter plugin: format jsx files (or js files with Facebook React JSX Syntax)
MIT License
142 stars 25 forks source link

Option to add a new line for the parentheses wrapping jsx #107

Open michaellee8 opened 7 years ago

michaellee8 commented 7 years ago

This gives more clear separation between javascript and JSX components, like React Website does. For example, Before:

render(){
  return (<App><Comp/></App>);

After:

render(){
  return (
           <App>
             <Comp/>
           </App>
  );

Instead of:

render(){
  return (<App>
            <Comp/>
          </App>);