Skip to content

Releases: ota-meshi/eslint-plugin-regexp

v1.3.1

26 Sep 10:23
Compare
Choose a tag to compare

🐛 Bug Fixes

  • #338 Fixed autofix not working for unknown patterns in regexp/sort-flags rule.

v1.3.0

24 Sep 10:44
Compare
Choose a tag to compare

🐛 Bug Fixes

  • #335 Fixed false negatives in regexp/no-useless-lazy rule.

v1.2.0

23 Sep 01:08
Compare
Choose a tag to compare

✨ Enhancements

  • #319 Added regexp/no-contradiction-with-assertion rule.
  • #324 Added regexp/prefer-lookaround rule.
  • #329 Added regexp/no-empty-character-class rule.
  • #330 Added regexp/prefer-named-capture-group rule.
  • #331 Added regexp/require-unicode-regexp rule.
  • #332 Added regexp/no-misleading-unicode-character rule.
  • #333 Added regexp/no-control-character rule.
  • #316 Improved regexp/no-useless-assertion rule for nested assertions.

🐛 Bug Fixes

  • #327 Fixed false negatives for regex in RegExp constructor in regexp/control-character-escape rule.
  • #320, #321 Improved regexp/sort-alternative's comparison function.

v1.1.0

01 Sep 08:35
Compare
Choose a tag to compare

✨ Enhancements

  • #306 Updated regexp/no-useless-flag rule to report that regex flags that use only the source are useless.
  • #306 Improved rules to avoid double reporting.

v1.0.0

14 Aug 00:45
Compare
Choose a tag to compare

💥 Breaking Changes

  • #260 Dropped support Node.js v10.x and v13.x.
  • Deprecated rules
    • #169 regexp/prefer-t rule.
    • #176 regexp/no-useless-non-greedy rule.
    • #222 regexp/no-useless-exactly-quantifier rule.
    • #229 regexp/no-assertion-capturing-group rule.
    • #238 regexp/order-in-character-class rule.
  • #241 Removed disallowNeverMatch and alwaysReportExponentialBacktracking options from regexp/no-dupe-disjunctions rule.
  • #49 Changed plugin:regexp/recommended config
    • Added rules.
      • regexp/confusing-quantifier rule.
      • regexp/control-character-escape rule.
      • regexp/negation rule.
      • regexp/no-dupe-disjunctions rule.
      • regexp/no-empty-alternative rule.
      • regexp/no-empty-capturing-group rule.
      • regexp/no-invalid-regexp rule.
      • regexp/no-lazy-ends rule.
      • regexp/no-legacy-features rule.
      • regexp/no-non-standard-flag rule.
      • regexp/no-obscure-range rule.
      • regexp/no-optional-assertion rule.
      • regexp/no-potentially-useless-backreference rule.
      • regexp/no-super-linear-backtracking rule.
      • regexp/no-trivially-nested-assertion rule.
      • regexp/no-trivially-nested-quantifier rule.
      • regexp/no-unused-capturing-group rule.
      • regexp/no-useless-assertions rule.
      • regexp/no-useless-character-class rule.
      • regexp/no-useless-dollar-replacements rule.
      • regexp/no-useless-escape rule.
      • regexp/no-useless-flag rule.
      • regexp/no-useless-lazy rule.
      • regexp/no-useless-non-capturing-group rule.
      • regexp/no-useless-quantifier rule.
      • regexp/no-useless-range rule.
      • regexp/no-zero-quantifier rule.
      • regexp/optimal-lookaround-quantifier rule.
      • regexp/optimal-quantifier-concatenation rule.
      • regexp/prefer-character-class rule.
      • regexp/prefer-predefined-assertion rule.
      • regexp/prefer-range rule.
      • regexp/prefer-unicode-codepoint-escapes rule.
      • regexp/sort-flags rule.
      • regexp/strict rule.
      • no-empty-character-class rule.
    • Removed no-invalid-regexp rule.
  • #49 Changed default option
    • Changed hexadecimalEscape option of regexp/letter-case rule from ignore to lowercase.
    • Changed controlEscape option of regexp/letter-case rule from ignore to uppercase.

✨ Enhancements

  • #276 Added autofix and suggestion for regexp/no-unused-capturing-group rule.
  • #256, #297 Improved regexp/sort-alternatives rule.
  • #279 Improved regexp/optimal-quantifier-concatenation rule.
  • #281 Improved regexp/no-dupe-disjunctions rule.
  • #282, #286 Improved reporting when patterns are constructed with complex expressions.
  • #285 Added autofix for g and y flags to regexp/no-useless-flag rule and improved the message.
  • #287 Improved regexp/no-non-standard-flag rule and regexp/sort-flags rule.
  • #288 Added regexp/no-invalid-regexp rule.
  • #292 Added strictTypes option to regexp/no-useless-flag rule.

🐛 Bug Fixes

  • #289, #295 Fixed to escape when displaying a pattern in a message.
  • #293 Fixed regexp/no-useless-lazy for quantifiers with min=0.

⚙️ Updates

  • #294 Shrink report range of regexp/no-useless-non-capturing-group rule.
  • #296 Upgraded regexp-ast-analysis.

From now on, it follows ESLint's Semantic Versioning Policy.

v0.13.2

20 Jul 03:12
Compare
Choose a tag to compare

🐛 Bug fixes

  • #275 [ce599ff] Fix false positives in regexp/negation rule.

⚙️ Updates

  • #273 [123e45a] Updated refa, regexp-ast-analysis, and scslre.

v0.13.1

07 Jul 00:14
Compare
Choose a tag to compare

🐛 Bug fixes

  • #264 Fixed false positives for number regex in regexp/sort-alternatives rule.
  • #267 Fixed wrong suggested fix for Unicode property escapes in regexp/negation rule.
  • #265 Fixed false positives for i flag and Unicode property escapes in regexp/no-useless-flag rule.

v0.13.0

02 Jul 00:00
Compare
Choose a tag to compare

✨ Enhancements

  • #242 Added regexp/no-super-linear-backtracking rule.
  • #246 Added regexp/no-super-linear-move rule.
  • #250 Added plugin:regexp/all config.

⚙️ Updates

  • #248 Changed regexp/strict rule to suggest octal fixes.
  • #261 Added support for d flag.
  • #257 Changed regexp/optimal-quantifier-concatenation rule to provide consistent reporting.

🐛 Bug fixes

  • #249 Fixed issue where rules related to regex usage would appear to use unknown call as regexp exec.
  • #259 Fixed incorrect pattern parsing when giving RegExp argument to RegExp constructor.

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.