Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
Improve report location of no-trailing-spaces by specifying end location #12315
What rule do you want to change?
Does this change cause the rule to produce more or fewer warnings?
How will the change be implemented? (New option, new default behavior, etc.)?
Please provide some example code that this change will affect:
/* eslint no-trailing-spaces: 2*/ // trailing spaces a
What does the rule currently do for this code?
What will the rule do after it's changed?
Are you willing to submit a pull request to implement this change?
Hi @golopot , thanks for the issue!
I can confirm that the rule reports only the start location. It makes sense in this case to highlight the full range that would be automatically removed by the fixer.
I'm willing to champion the enhancement, though I'm not sure should this be rather accepted as a bug.