Skip to content

Releases: ota-meshi/eslint-plugin-regexp

v0.12.1

13 Jun 11:46
Compare
Choose a tag to compare

🐛 Bug Fixes

  • 5f67457 Fixed false positives for space in RegExp constructor in regexp/no-invisible-character rule.

v0.12.0

11 Jun 04:32
Compare
Choose a tag to compare

✨ Enhancements

  • #220 Added regexp/strict rule.
  • #235 Added regexp/sort-alternatives rule.
  • #224 Added support for y flag to regexp/no-useless-flag rule.
  • #215 Added new option to allow only partial use to the allowTop option of regexp/no-useless-non-capturing-group rule.
  • #216 Added ignorePartial option to regexp/no-lazy-ends rule.
  • #226 Made the regexp/no-useless-escape rule to auto-fixable.

🐛 Bug Fixes

  • #219 Fixed regexp/prefer-range for adjacent but not-allowed ranges.

⚙️ Updates

  • #221 Added regexp/no-empty-capturing-group rule that same regexp/no-assertion-capturing-group rule.
  • #237 Added regexp/sort-character-class-elements rule that same regexp/order-in-character-class rule.
  • #234 Changed to handle variables listed in exported directive as unknown usage.

v0.11.0

25 May 07:41
Compare
Choose a tag to compare

✨ Enhancements

  • #207 Added regexp/optimal-quantifier-concatenation rule.
  • #204 Added reportExponentialBacktracking options to regexp/no-dupe-disjunctions rule. And changed alwaysReportExponentialBacktracking option to deprecated.
  • #204 Added reportUnreachable options to regexp/no-dupe-disjunctions rule.

⚙️ Updates

  • #208 Changed regexp/prefer-quantifier rule to no longer report quantifiers that can be simplified. Instead, regexp/optimal-quantifier-concatenation rule reports it.

v0.10.0

07 May 23:00
Compare
Choose a tag to compare

✨ Enhancements

  • #171 Added regexp/prefer-predefined-assertion rule.
  • #175 Added regexp/no-standalone-backslash rule.
  • #197 Added regexp/no-useless-quantifier rule.
  • #200 Added regexp/no-zero-quantifier rule.
  • #177, #179 Improved regexp/no-dupe-disjunctions rule to detect more duplicates.
  • #179 Added new options to regexp/no-dupe-disjunctions rule.
  • #188 Improved regexp/no-assertion-capturing-group rule to detect more empty capturing groups.
  • #191 Updated regexp/no-dupe-characters-character-class rule to support autofix.
  • #191 Improved regexp/no-dupe-characters-character-class rule to detect more duplicates.

🐛 Bug Fixes

  • #196 Fixed false positives in regexp/no-dupe-disjunctions rule.

⚙️ Updates

  • #174 Added regexp/no-useless-lazy rule that same regexp/no-useless-non-greedy rule.
  • #191 Updated regexp/no-dupe-characters-character-class rule to improve report messages.
  • #179 Updated regexp/no-dupe-disjunctions rule to detect more without setting disallowNeverMatch option (disallowNeverMatch option will be removed in v1.0.).

v0.9.0

20 Apr 15:05
Compare
Choose a tag to compare

✨ Enhancements

  • #120 Added regexp/no-trivially-nested-assertion rule.
  • #136 Added regexp/no-potentially-useless-backreference rule.
  • #122 Added regexp/no-obscure-range rule.
  • #135 Added regexp/no-optional-assertion rule.
  • #137 Added regexp/no-useless-assertions rule.
  • #140 Added regexp/prefer-named-backreference rule.
  • #139 Added regexp/no-useless-flag rule.
  • #146 Added regexp/no-trivially-nested-quantifier rule.
  • #163 Added regexp/hexadecimal-escape rule.
  • #164 Added regexp/sort-flags rule.
  • #166 Added regexp/unicode-escape rule.
  • #167 Added regexp/no-non-standard-flag rule.
  • #168 Added regexp/control-character-escape rule.
  • #111 Improved regexp/no-useless-backreference rule to detect more useless backreferences.
  • #131 Added suggestions for regexp/no-octal rule.
  • #143 Improved regexp/no-useless-non-greedy rule to detect more useless non-greedy.
  • #148 Added supports for unicode property to regexp/no-dupe-characters-character-class rule.
  • #148 Added supports for negative escape character class to regexp/no-dupe-characters-character-class rule.
  • #148 Updated regexp/no-dupe-characters-character-class rule to report that escape character class include escape character class.
  • #154 Improved regexp/no-useless-non-capturing-group rule to detect more useless non-capturing-group.
  • #154 Added allowTop option to regexp/no-useless-non-capturing-group rule.
  • #158 Improved regexp/prefer-character-class rule to convert more disjunctions to character classes.

🐛 Bug Fixes

  • #125 Fixed wrong autofix for non-RegExp arguments in regexp/prefer-regexp-test rule.
  • #133 Fixed false positives for regexp/optimal-lookaround-quantifier rule.
  • #126 Fixed wrong autofix in regexp/no-useless-range rule.
  • #122 Fixed false positives in regexp/prefer-ranges rule.
  • #148 Fixed false negatives for [\s\u180e] in regexp/no-dupe-characters-character-class rule.
  • #148 Fixed false negatives for i flag in regexp/no-dupe-characters-character-class rule.

⚙️ Updates

  • #133 Updated regexp/optimal-lookaround-quantifier rule to a consistent message format.
  • #111 Updated plugin:regexp/recommended sharable configuration to turn off the ESLint's no-useless-backreference rule and enable regexp/no-useless-backreference rule.
  • #122 Added support for settings to regexp/prefer-ranges rule.
  • #148 Improved reporting of regexp/no-dupe-characters-character-class rule when fully including elements.
  • #155 Improved regexp/prefer-w rule.
  • #161 Changed message and output source for regexp/invisible-character rule.

v0.8.0

14 Apr 11:23
Compare
Choose a tag to compare

✨ Enhancements

  • #93 Added regexp/confusing-quantifier rule.
  • #95 Added regexp/no-empty-alternative rule.
  • #96 Added regexp/no-lazy-ends rule.
  • #97 Added regexp/optimal-lookaround-quantifier rule.
  • #103 Improved fixer of regexp/match-any rule.
  • #109 Made regexp/no-useless-two-nums-quantifier rule fixable.
  • #108 Changed regexp/no-octal rule to report more octal escapes.
  • #113 Changed regexp/no-empty-lookarounds-assertion rule to detect potential empty.

🐛 Bug Fixes

  • #103 Fixed false negatives in regexp/match-any rule.
  • #116 Fixed false positives for disallowNeverMatch option in regexp/no-dupe-disjunctions rule.
  • #90 Fixed false negatives for escape char class in range, in regexp/no-dupe-characters-character-class rule.

⚙️ Updates

  • #112 Consistent message formatting

v0.7.5

01 Apr 08:13
Compare
Choose a tag to compare

🐛 Bug Fixes

  • #88 Fixed false positives for character classes with no matching characters in regexp/match-any rule.
  • #89 Fixed regexp/prefer-question-quantifier rule changing effect of alternative order.

v0.7.4

31 Mar 14:41
Compare
Choose a tag to compare

🐛 Bug Fixes

  • #84 Fixed false positives for disallowNeverMatch option in regexp/no-dupe-disjunctions rule.

v0.7.3

31 Mar 10:51
Compare
Choose a tag to compare

🐛 Bug Fixes

  • #83 Fixed false positives for disallowNeverMatch option in regexp/no-dupe-disjunctions rule.

v0.7.2

31 Mar 09:58
Compare
Choose a tag to compare

🐛 Bug Fixes

  • #81 Fixed false positives for disallowNeverMatch option in regexp/no-dupe-disjunctions rule.
  • #82 Fixed false positives for unknown method in regexp/no-unused-capturing-group.