millermedeiros / esformatter

ECMAScript code beautifier/formatter
MIT License
970 stars 91 forks source link

make JSX ending bracket on a new line #433

Closed fab1an closed 8 years ago

fab1an commented 8 years ago

Is it possible to format JSX like this:

<div
    className="test"
    style={{
        height: "100px"
    }}
>                               <----- on a new line
    Something
</div>

At the moment I get

<div
     className="test"
     style={{
                height: "100px"                    <----- too much indentation
            }}>                                  <--- ">" symbol not on a new line
  Something
</div>

I tried countless options already without result, so I ask here. I use the esformatter-jsx plugin. Many thanks.

fab1an commented 8 years ago

Moved: https://github.com/royriojas/esformatter-jsx/issues/67