Open stefanicai opened 5 years ago
Comment attachment is difficult; I believe eslint doesn't actually attach comments to nodes. For you (and for ts-ignore comments, specifically), they go above, but some people put comments on the same line, and some below.
I'm not sure how to address this reliably except perhaps to bail on moving any line that has a comment adjacent in any direction.
This is a very annoying bug indeed. Has anyone found a workaround ?
Currently reordering leaves the comments behind. Thus something like:
Becomes:
That's incorrect. The autofix should move the above comment as well.