Skip to content

regexp/no-useless-range

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

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

disallow unnecessary character ranges

📖 Rule Details

This rule reports unnecessary character ranges. E.g. [a-a]

Now loading...

🔧 Options

Nothing.

🚀 Version

This rule was introduced in eslint-plugin-regexp v0.3.0

🔍 Implementation