royriojas / esformatter-jsx

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

Handle decorator arguments #77

Closed arminrosu closed 8 years ago

arminrosu commented 8 years ago

Hey,

Sorry to bother again. esformatter-jsx fails on files with decorator arguments:

example.js

export default class Example {
  @readOnly(false) 
  variable = 2;
}

.esformatter

{
    "preset": "default",
    "root": true,
    "indent": {
        "value": "  "
    },
    "plugins": [
        "esformatter-jsx"
    ]
}
arminrosu commented 8 years ago

Thank you very much!