millermedeiros / esformatter

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

After "FunctionName" can not work for methods within object (ES6) #464

Closed zhenyong closed 8 years ago

zhenyong commented 8 years ago

Config

{
  "root": true,
  "whiteSpace": {
    "after": {
      "FunctionName": 1,
      "FunctionReservedWord": 1
    }
  }
}

Codes

function good() {}
var obj = {
  bad() {}
}
function good () {
}
var obj = {
  bad() {}
}
function good () {
}
var obj = {
  bad () {} //!!!! here: space after 'bad'
}

I have try to config all option with "1", and nothing help. Is there any other config can work for my expect?

I really like esformatter for so much easy config. ^_^

millermedeiros commented 8 years ago

duplicate of #368

I added a new option called MethodName but I still need to release a version!