Skip to content


enforce single grapheme in string literal

📖 Rule Details

This rule is aimed to clarify the difference between using a string literal and normal disjunctions by not using string literals for purposes other than expressing a single grapheme.

Now loading...

This rule does not report empty string literals. Use regexp/no-empty-string-literal and regexp/no-empty-alternative if you want to check them.

🔧 Options


🚀 Version

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

🔍 Implementation