regexp/no-useless-escape
💼 This rule is enabled in the following configs: 🟢 flat/recommended
, 🔵 recommended
.
🔧 This rule is automatically fixable by the --fix
CLI option.
disallow unnecessary escape characters in RegExp
📖 Rule Details
This rule reports unnecessary escape characters in RegExp.
You may be able to find another mistake by finding unnecessary escapes.
This rule checks for unnecessary escapes with deeper regular expression parsing than the ESLint core's no-useless-escape rule.
🔧 Options
Nothing.
👫 Related rules
🚀 Version
This rule was introduced in eslint-plugin-regexp v0.4.0