regexp/prefer-question-quantifier
💼 This rule is enabled in the following configs: 🟢 flat/recommended
, 🔵 recommended
.
🔧 This rule is automatically fixable by the --fix
CLI option.
enforce using
?
quantifier
📖 Rule Details
This rule is aimed at using ?
quantifier instead of {0,1}
in regular expressions.
🔧 Options
Nothing.
🚀 Version
This rule was introduced in eslint-plugin-regexp v0.1.0