maksimr/vim-jsbeautify

Jsx support/documentation.

Closed this issue · 3 comments

Based on the code I see partial support for jsx extension. However the configuration is not documented and jsx formatting breaks on simple cases for eg:

  render: function() {
    if (!this.state.someMethod) {
      return (
        <div className="first">
          <Component1 />
        </div>
      );
    } else {
      return (
        <div className="second">
          <NavBar/>
          <Component2 />
        </div>
      );
    }
  },

@r-tock put to .editorconfig

[**.jsx]
e4x = true

That works!. The bug still stands, would be nice to update the README with jsx support.

Looks like you did already! Sweet!