RunDevelopment/eslint-plugin-clean-regex

Warn about empty groups containing only assertions

RunDevelopment opened this issue · 1 comments

Examples:

/(\b)+/
/(?:(?!a))/

Can be achieved using the no-constant-capturing-groups, no-unnecessary-groups, and no-unnecessary-quantifiers rules.