royriojas / esformatter-jsx

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

Can't format export async function ... #88

Open octohedron opened 7 years ago

octohedron commented 7 years ago

Getting unexpected token

export async function get(path, suppressRedBox) {
  return bodyOf(request('get', path, null, suppressRedBox));
}

JSFMT Settings

{
  "autoformat": false,
  "extensions": [
    "js",
    "jsx",
    "sublime-settings"
  ],
  "options": {
    "jsx": {
      "alignWithFirstAttribute": true,
      "attrsOnSameLineAsTag": false,
      "firstAttributeOnSameLine": false,
      "formatJSX": true,
      "maxAttrsOnTag": 1
    },
    "plugins": [
      "esformatter-jsx"
    ]
  }
}

Other files work fine, it's only failing there

royriojas commented 7 years ago

hi @octohedron,

what settings are u using? it seems to be working fine with esformatter-jsx@7.1.0. It seems you're using sublime-jsfmt right?