Releases: ota-meshi/eslint-plugin-regexp
Releases · ota-meshi/eslint-plugin-regexp
v0.4.2
v0.4.1
v0.4.0
✨ Enhancements
- #36 Added
regexp/prefer-rangerule that aimed to use ranges instead of multiple adjacent characters in character class. - #39 Added
regexp/no-dupe-disjunctionsrule that disallows duplicate disjunctions. - #40 Added
regexp/prefer-character-classrule that aimed to use character classes instead of the disjunction of single element alternatives. - #43 Added
regexp/no-useless-non-capturing-grouprule that reports unnecessary Non-capturing group - #44 Added
regexp/no-useless-escaperule that reports unnecessary escape characters in RegExp. - #47 Added
regexp/negationrule that enforces use of\D,\W,\Sand\Pon negation. - #48 Added
regexp/order-in-character-classrule that checks elements of character classes are sorted. - #45 Added support for case checking of hex escapes and control escapes to
regexp/letter-caserule.
v0.3.1
v0.3.0
✨ Enhancements
- #28 Added
regexp/no-useless-character-classrule that reports character classes that defines only one character. - #31 Added
regexp/no-useless-non-greedyrule that reports unnecessary quantifier non-greedy (?). - #32 Added
regexp/prefer-regexp-execrule that aimed at enforcing the more performant way of applying regular expressions on strings. - #32 Added
regexp/prefer-regexp-testrule that aimed to useRegExp#testto check if a pattern matches a string. - #33 Added
regexp/prefer-unicode-codepoint-escapesrule that enforces the use of Unicode codepoint escapes instead of Unicode escapes using surrogate pairs. - #35 Added
regexp/letter-caserule that aimed to unify the case of letters. - #34 Added
regexp/no-useless-rangerule that reports unnecessary range of characters by using a hyphen. e.g.[a-a]
⚙️ Updates
- #29 Improved performance.