Skip to content

regexp/no-useless-string-literal

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

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

disallow string disjunction of single characters in \q{...}

📖 Rule Details

This rule reports the string alternatives of a single character in \q{...}. It can be placed outside \q{...}.

Now loading...

🔧 Options

Nothing.

🚀 Version

This rule was introduced in eslint-plugin-regexp v2.0.0-next.12

🔍 Implementation