suppress-eslint-errors
suppress-eslint-errors copied to clipboard
Fix handling of trailing, same-line 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();