confusing-quantifier | disallow confusing quantifiers | | β
| | |
control-character-escape | enforce consistent escaping of control characters | β
| | π§ | |
negation | enforce use of escapes on negation | β
| | π§ | |
no-dupe-characters-character-class | disallow duplicate characters in the RegExp character class | β
| | π§ | |
no-empty-string-literal | disallow empty string literals in character classes | β
| | | |
no-extra-lookaround-assertions | disallow unnecessary nested lookaround assertions | β
| | π§ | |
no-invisible-character | disallow invisible raw character | β
| | π§ | |
no-legacy-features | disallow legacy RegExp features | β
| | | |
no-non-standard-flag | disallow non-standard flags | β
| | | |
no-obscure-range | disallow obscure character ranges | β
| | | |
no-octal | disallow octal escape sequence | | | | π‘ |
no-standalone-backslash | disallow standalone backslashes (\ ) | | | | |
no-trivially-nested-assertion | disallow trivially nested assertions | β
| | π§ | |
no-trivially-nested-quantifier | disallow nested quantifiers that can be rewritten as one quantifier | β
| | π§ | |
no-unused-capturing-group | disallow unused capturing group | β
| | π§ | π‘ |
no-useless-character-class | disallow character class with one character | β
| | π§ | |
no-useless-flag | disallow unnecessary regex flags | | β
| π§ | |
no-useless-lazy | disallow unnecessarily non-greedy quantifiers | β
| | π§ | |
no-useless-quantifier | disallow quantifiers that can be removed | β
| | π§ | π‘ |
no-useless-range | disallow unnecessary character ranges | β
| | π§ | |
no-useless-set-operand | disallow unnecessary elements in expression character classes | β
| | π§ | |
no-useless-string-literal | disallow string disjunction of single characters in \q{...} | β
| | π§ | |
no-useless-two-nums-quantifier | disallow unnecessary {n,m} quantifier | β
| | π§ | |
no-zero-quantifier | disallow quantifiers with a maximum of zero | β
| | | π‘ |
optimal-lookaround-quantifier | disallow the alternatives of lookarounds that end with a non-constant quantifier | | β
| | π‘ |
optimal-quantifier-concatenation | require optimal quantifiers for concatenated quantifiers | β
| | π§ | |
prefer-escape-replacement-dollar-char | enforces escape of replacement $ character ($$ ). | | | | |
prefer-predefined-assertion | prefer predefined assertion over equivalent lookarounds | β
| | π§ | |
prefer-quantifier | enforce using quantifier | | | π§ | |
prefer-range | enforce using character class range | β
| | π§ | |
prefer-regexp-exec | enforce that RegExp#exec is used instead of String#match if no global flag is provided | | | | |
prefer-regexp-test | enforce that RegExp#test is used instead of String#match and RegExp#exec | | | π§ | |
prefer-set-operation | prefer character class set operations instead of lookarounds | β
| | π§ | |
require-unicode-regexp | enforce the use of the u flag | | | π§ | |
require-unicode-sets-regexp | enforce the use of the v flag | | | π§ | |
simplify-set-operations | require simplify set operations | β
| | π§ | |
sort-alternatives | sort alternatives if order doesn't matter | | | π§ | |
use-ignore-case | use the i flag if it simplifies the pattern | β
| | π§ | |