royriojas / esformatter-jsx

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

Closing round bracket indentation #101

Open chuan137 opened 7 years ago

chuan137 commented 7 years ago

with the default options, the closing round bracket in return clause is indented one level more.

class App extends Component {
  render() {
    return (
      <div className="App">
        <Header/>
        <p className="App-intro">
          To get started, edit <code>src/App.js</code> and save to reload.
        </p>
      </div>
      ); // prefer aligned with return instead of </div>
  }
}

I am using beautify@0.7.3 and react-beautify@0.3.0

varunkumar commented 7 years ago

Any fix for this?