no-useless-escape rule is not handling regex back references correctly #7472
Labels
accepted
There is consensus among the team that this change meets the criteria for inclusion
archived due to age
This issue has been archived; please open a new issue for any further discussion
bug
ESLint is working incorrectly
patch candidate
This issue may necessitate a patch release in the next few days
regression
Something broke
rule
Relates to ESLint's core rules
It appears that the recent changes related to the no-useless-escape rule are not handling the integer back references (e.g.
\1
) correctly.eslint: 3.9.0
node: 4.4.3
npm: 2.15.1
parser: default
.eslintrc:
JavaScript file:
What did you expect to happen?
No eslint errors
What actually happened? Please include the actual, raw output from ESLint.
2:51 error Unnecessary escape character: \1 no-useless-escape
The text was updated successfully, but these errors were encountered: