Open
Description
This issue is present since v11.1.0
.
The formatter moves comments inside an array to after the array if the array contains a spread:
// Before formatter
let arr = [1, 2, 3]
let _ = [
// Comment before
...arr,
// Comment after
4
]
// After formatter
let arr = [1, 2, 3]
let _ = [...arr, 4] // Comment before
// Comment after