max-mapper / standard-format

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

Space being added after defaulted function parameters. #140

Closed 5310 closed 7 years ago

5310 commented 8 years ago

Coming from the Atom Standard Formatter package (which itself is v1.2.1), which uses standard-format v1.6.10

I notice that space is being added after function parameters with defaults before a comma, like after x = 0:

let f = (x = 0 , a = 1) => x === 0 ? a : f(x - 1, a * x)

No space is added after the undefaulted first x in the following example, or after either example's a = 0 parameter:

let f = (x, a = 1) => x === 0 ? a : f(x - 1, a * x)
lygstate commented 8 years ago

Ping for this.

joseluisq commented 8 years ago

:+1:

samuelmasuy commented 7 years ago

Has it been resolved? Nevermind, I will use standard --fix instead.

feross commented 7 years ago

You should use standard --fix instead of this package. standard-format isn't being actively maintained anymore.

joseluisq commented 7 years ago

@feross 👍