Skip to content

regexp/control-character-escape

💼 This rule is enabled in the ✅ plugin:regexp/recommended config.

🔧 This rule is automatically fixable by the --fix CLI option.

enforce consistent escaping of control characters

📖 Rule Details

This rule reports control characters that were not escaped using a control escape (\0, \t, \n, \v, \f, \r).

Now loading...

🔧 Options

Nothing.

🚀 Version

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

🔍 Implementation