Skip to content


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

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

disallow trivially nested assertions

📖 Rule Details

Lookaround assertions that only contain another assertion can be simplified.

Now loading...

🔧 Options


🚀 Version

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

🔍 Implementation