Closed 5310 closed 7 years ago
Coming from the Atom Standard Formatter package (which itself is v1.2.1), which uses standard-format v1.6.10
standard-format
I notice that space is being added after function parameters with defaults before a comma, like after x = 0:
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:
x
a = 0
let f = (x, a = 1) => x === 0 ? a : f(x - 1, a * x)
Ping for this.
:+1:
Has it been resolved? Nevermind, I will use standard --fix instead.
standard --fix
You should use standard --fix instead of this package. standard-format isn't being actively maintained anymore.
@feross 👍
Coming from the Atom Standard Formatter package (which itself is v1.2.1), which uses
standard-format
v1.6.10I notice that space is being added after function parameters with defaults before a comma, like after
x = 0
:No space is added after the undefaulted first
x
in the following example, or after either example'sa = 0
parameter: