Disallow lookarounds that only contain another assertion.
configuration in plugin:clean-regex/recommended
: "warn"
It's possible to nest lookarounds as deep as you want without changing the formal language of the regular expression. The nesting does not add meaning only making the pattern longer.
Examples of valid code for this rule:
/a(?!$)/
Examples of invalid code for this rule:
/(?=\b)/ // == \b
/(?=(?!a))/ //== (?!a)