max-mapper / standard-format

converts your code into Standard JavaScript Format
264 stars 59 forks source link

Add failing test for spaces before commas in object destructuring assignment #85

Closed SimenB closed 9 years ago

SimenB commented 9 years ago

const { message, rollup, line, col, type } = origMessage is converted into const { message , rollup , line , col , type } = origMessage (adds spaces before commas).

Unsure if you want the test, but w/e :smile:

bcomnes commented 9 years ago

We'll take it! Thanks :+1:

SimenB commented 9 years ago

@bcomnes Great. Probably should have made an issue as well to track it. Is the bug in here or esformatter?

bcomnes commented 9 years ago

I'm not sure yet. The only way to find out is to fiddle with the esformatter config to see if it can be fixed in a way that doesn't break anything else. Worst case, its either an upstream bug or will just require a plugin.