Skip to content

v45.0.0

Compare
Choose a tag to compare
@sindresorhus sindresorhus released this 20 Nov 18:25
· 172 commits to main since this release

New rules

Improvements

  • prefer-at: Support private fields (#1929) 60bb455
  • no-useless-undefined: Ignore Array#includes() and Set#has() (#1951) 8dfd5a7
  • no-useless-spread: Check cloning inline arrays (#1980) 5d90d73
  • prefer-top-level-await: Ignore expressions in class (#1976) b90a3aa
  • prefer-string-replace-all: Improve RegExp to string fix (#1971) b844dbc
  • prefer-string-replace-all: Check pattern even if it's already using .replaceAll (#1981) e8c5156
  • prefer-string-replace-all: Report all String#replace() when the pattern has g flag (#1965) 6316f05
  • prefer-string-replace-all: Ignore regex with pipe (#1962) 76deaa3
  • prefer-regexp-test: Use suggestions if not sure regexp without g flag (#1954) 505a203
  • no-array-for-each: Skip fix for some edge cases (#1979) 48efc7a
  • prefer-add-event-listener: Only fix ExpressionStatement, check operator (#1955) aca21f2
  • prevent-abbreviations: Improve fix for retVal (#1953) 25cd810

Fixes

  • prefer-top-level-await: Fix crash on for..of loop (#1950) 00a29c8

v44.0.2...v45.0.0