A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://ota-meshi.github.io/eslint-plugin-regexp/rules/no-empty-string-literal.html below:

Website Navigation


regexp/no-empty-string-literal | eslint-plugin-regexp

regexp/no-empty-string-literal

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

disallow empty string literals in character classes

📖 Rule Details

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.

🔧 Options

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