Skip to content

Latest commit

 

History

History
46 lines (30 loc) · 1.08 KB

no-useless-exactly-quantifier.md

File metadata and controls

46 lines (30 loc) · 1.08 KB
pageClass sidebarDepth title description since
rule-details
0
regexp/no-useless-exactly-quantifier
disallow unnecessary exactly quantifier
v0.1.0

regexp/no-useless-exactly-quantifier

❌ This rule is deprecated. It was replaced by regexp/no-useless-quantifier,regexp/no-zero-quantifier.

disallow unnecessary exactly quantifier

📖 Rule Details

This rule reports {0} or {1} quantifiers.

/* eslint regexp/no-useless-exactly-quantifier: "error" */

/* ✓ GOOD */
var foo = /a/;

/* ✗ BAD */
var foo = /a{1}/;
var foo = /a{0}/;

🔧 Options

Nothing.

🚀 Version

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

🔍 Implementation