Releases: ota-meshi/eslint-plugin-regexp
Releases · ota-meshi/eslint-plugin-regexp
v0.6.2
v0.6.1
v0.6.0
✨ Enhancements
- #60 Added
regexp/no-legacy-features
rule that disallow legacy RegExp features. - #62 Added
regexp/no-useless-dollar-replacements
rule that aims to detect and disallow useless$
replacements in regular expression replacements. - #62 Added
regexp/prefer-escape-replacement-dollar-char
rule that aims to enforce escape when using the$
character in replacement pattern of string replacement. - #65 Added
regexp/no-unused-capturing-group
rule that disallow unused capturing group.
v0.5.0
v0.4.3
v0.4.2
v0.4.1
v0.4.0
✨ Enhancements
- #36 Added
regexp/prefer-range
rule that aimed to use ranges instead of multiple adjacent characters in character class. - #39 Added
regexp/no-dupe-disjunctions
rule that disallows duplicate disjunctions. - #40 Added
regexp/prefer-character-class
rule that aimed to use character classes instead of the disjunction of single element alternatives. - #43 Added
regexp/no-useless-non-capturing-group
rule that reports unnecessary Non-capturing group - #44 Added
regexp/no-useless-escape
rule that reports unnecessary escape characters in RegExp. - #47 Added
regexp/negation
rule that enforces use of\D
,\W
,\S
and\P
on negation. - #48 Added
regexp/order-in-character-class
rule that checks elements of character classes are sorted. - #45 Added support for case checking of hex escapes and control escapes to
regexp/letter-case
rule.
v0.3.1
v0.3.0
✨ Enhancements
- #28 Added
regexp/no-useless-character-class
rule that reports character classes that defines only one character. - #31 Added
regexp/no-useless-non-greedy
rule that reports unnecessary quantifier non-greedy (?
). - #32 Added
regexp/prefer-regexp-exec
rule that aimed at enforcing the more performant way of applying regular expressions on strings. - #32 Added
regexp/prefer-regexp-test
rule that aimed to useRegExp#test
to check if a pattern matches a string. - #33 Added
regexp/prefer-unicode-codepoint-escapes
rule that enforces the use of Unicode codepoint escapes instead of Unicode escapes using surrogate pairs. - #35 Added
regexp/letter-case
rule that aimed to unify the case of letters. - #34 Added
regexp/no-useless-range
rule that reports unnecessary range of characters by using a hyphen. e.g.[a-a]
⚙️ Updates
- #29 Improved performance.