suppress-eslint-errors icon indicating copy to clipboard operation
suppress-eslint-errors copied to clipboard

Fix handling of trailing, same-line comments

Open amanda-mitchell opened this issue 4 years ago • 0 comments

When the tool encounters this pattern:

somethingWithAViolation(); // a comment

The trailing comment is moved to being a leading comment, so that it looks like this:

// a comment
// TODO: ...
// eslint-disable-next-line ...
somethingWithAViolation();

amanda-mitchell avatar Jan 21 '21 18:01 amanda-mitchell