Input:
var a = foo()
.bar();
var arr = [
foo()
.bar()
]
Expected output:
var a = foo()
.bar();
var arr = [
foo()
.bar()
]
Actual output:
var a = foo()
.bar();
var arr = [
foo()
.bar()
]
So in array.
And also in arrow functions:
arg =>
foo()
.bar()
but
arg => {
foo()
.bar()
}
expected:
arg =>
foo()
.bar()
+1. We also encouter this. Maybe that could be a switch
:+1:
And another example in arrow functions:
onePromise.then(
result => twoPromise()
.then(resolve, reject),
error => reject(error)
)
Result:
onePromise.then(
result => twoPromise()
.then(resolve, reject),
error => reject(error)
)
Must be:
onePromise.then(
result => twoPromise()
.then(resolve, reject),
error => reject(error)
)
Most helpful comment
+1. We also encouter this. Maybe that could be a switch