You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// original
function badFormatting() {
return {
a,
b: c,
d: e,
f: g,
h,
i,
j:k
}
}
function goodFormatting() {
return {
a: b,
c,
d: e,
f: g,
h,
i,
j:k
}
}
// output
function badFormatting() {
return {
a,
b: c,
d: e,
f: g,
h,
i,
j: k
}
}
function goodFormatting() {
return {
a: b,
c,
d: e,
f: g,
h,
i,
j: k
}
}
In ES6, the object shorthand is getting weirdly indented when preserving new line, but only in the case that the object's first token is the shorthand syntax. This syntax is documented here: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Object_initializer
If you feel this is a legit bug, I'll be glad to look into fixing it.
The text was updated successfully, but these errors were encountered: