no-useless-escape false positive on chatacter classes including ] #11627
Labels
archived due to age
This issue has been archived; please open a new issue for any further discussion
question
This issue asks a question about ESLint
Tell us about your environment
What parser (default, Babel-ESLint, etc.) are you using? default
Please show your full configuration:
Configuration
What did you do? Please include the actual source code causing the issue, as well as the command that you used to run ESLint.
What did you expect to happen?
The regular expression should be permitted; the closing bracket
]
needs to be escaped within a character class, else it signifies the end of the character class.What actually happened? Please include the actual, raw output from ESLint.
Are you willing to submit a pull request to fix this bug?
No
The text was updated successfully, but these errors were encountered: