jdavisclark / JsFormat

Javascript formatting for Sublime Text 2 & 3
1.42k stars 222 forks source link

jsx ES6 {...obj} format Error #161

Closed pillys closed 6 years ago

pillys commented 8 years ago

"e4x": true source:

    ReactDOM.render(
      <Wrap {...PageData[id]} />,
      document.getElementById(id)
    );

result:

    ReactDOM.render( < Wrap {...PageData[id]
      }
      />,
      document.getElementById(id)
    );
bitwiseman commented 8 years ago

Please see https://github.com/beautify-web/js-beautify/issues/834.

Hmm... Not exactly the same but close.

bitwiseman commented 7 years ago

@pillys Please open new issue in https://github.com/beautify-web/js-beautify . I'll fix.

jdavisclark commented 6 years ago

appears to be fixed, re-open if necessary.