💼 This rule is enabled in the following configs: 🟢 flat/recommended
, 🔵 recommended
.
📖 Rule Details disallow empty string literals in character classes
This rule reports empty string literals in character classes.
If the empty string literal is supposed to match the empty string, then use a quantifier instead. For example, [ab\q{}]
should be written as [ab]?
.
This rule does not report empty alternatives in string literals. (e.g. /[\q{a|}]/v
)
If you want to report empty alternatives in string literals, use the regexp/no-empty-alternative rule.
Nothing.
🚀 Version This rule was introduced in eslint-plugin-regexp v2.0.0-next.11
🔍 Implementation RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4