# regexp/no-useless-range

disallow unnecessary range of characters by using a hyphen

  • ⚙️ This rule is included in "plugin:regexp/recommended".
  • 🔧 The --fix option on the command line (opens new window) can automatically fix some of the problems reported by this rule.

# 📖 Rule Details

This rule reports unnecessary range of characters by using a hyphen. e.g. [a-a]

Now loading...

# 🔧 Options

Nothing.

# 🚀 Version

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

# 🔍 Implementation