github sindresorhus/eslint-plugin-unicorn v44.0.0

latest releases: v56.0.0, v55.0.0, v54.0.0...
2 years ago

New rules

Improvements

  • prefer-array-find: Add option to also prefer .findLast() (#1900) 02252c7
  • template-indent: Preserve trailing spaces (#1872) e4071f5
  • no-document-cookie: Check window.document.cookie (#1833) 0886544
  • prefer-array-index-of: Prefer .lastIndexOf() over .findLastIndex() (#1896) 70e5bdd
  • prefer-array-some: Check .findLast() (#1897) 3e6ae43
  • prefer-native-coercion-functions: Check .findLast and .findLastIndex (#1893) f2c6acc
  • no-array-method-this-argument: Check .findLast and .findLastIndex (#1890) 3bc28ad
  • no-array-callback-reference: Check .findLast and .findLastIndex (#1889) 37a5cda
  • prefer-negative-index: Remove ArrayBuffer#at (#1899) a10e3f6
  • prefer-at: Improve fix (#1901) 1c457bb

Fixes

  • no-await-expression-member: Fix crash on TypeScript parser (#1910) b002e75
  • prevent-abbreviations: Skip fix when variable is JSX component (#1907) 9ed08ab
  • better-regexp: Don't fix if .source or .toString() is used (#1903) 8ad592b

v43.0.2...v44.0.0

Don't miss a new eslint-plugin-unicorn release

NewReleases is sending notifications on new releases.