Escaping non-special characters in strings, template literals, and regular expressions doesn't have any effect
Source: https://eslint.org/docs/rules/no-useless-escape
But clearly this is wrong:
There's nothing to "fix" here; we all know this is a perfectly valid sequence of characters.
Joking aside what's the rationale behind this?
If even ESLint acknowledges that there's no harm then why bother? It may be useless if you only look at the end result (I know that the \
character won't be printed out) but in a "code is data" context, this may be useful data when doing syntax analysis.
ESLint makes a judgment on what goes into the string, yet it won't budge with this code: (and that's pretty useless to me too)
var x = 10;
var y = x + 0;
var z = y * 1;