Skip to content

regexp/negation ​

💼 This rule is enabled in the following configs: 🟢 flat/recommended, 🔵 recommended.

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

enforce use of escapes on negation

📖 Rule Details ​

This rule enforces use of \D, \W, \S and \P on negation.

Now loading...

🔧 Options ​

Nothing.

🚀 Version ​

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

🔍 Implementation ​