# regexp/no-useless-escape

disallow unnecessary escape characters in RegExp

  • ⚙️ This rule is included in "plugin:regexp/recommended".
  • 🔧 The --fix option on the command line (opens new window) can automatically fix some of the problems reported by this rule.

# 📖 Rule Details

This rule reports unnecessary escape characters in RegExp.
You may be able to find another mistake by finding unnecessary escapes.

Now loading...

This rule checks for unnecessary escapes with deeper regular expression parsing than the ESLint core's no-useless-escape (opens new window) rule.

Now loading...

# 🔧 Options


# 🚀 Version

This rule was introduced in eslint-plugin-regexp v0.4.0

# 🔍 Implementation