# regexp/hexadecimal-escape

enforce consistent usage of hexadecimal escape

# 📖 Rule Details

Characters that can use hexadecimal escape can use both hexadecimal escape and unicode escape.

This rule aims is enforces the consistent use of hexadecimal escapes.

Now loading...

# 🔧 Options

{
  "regexp/hexadecimal-escape": [
    "error", 
    "always", // or "never"
  ]
}
  • "always" ... Unicode escape characters that can use hexadecimal escape must always use hexadecimal escape. This is default.
  • "never" ... Disallows the use of hexadecimal escapes on all characters.

# "never"

Now loading...

# 🚀 Version

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

# 🔍 Implementation

Last Updated: 1/24/2022, 10:44:04 AM