github sindresorhus/eslint-plugin-unicorn v64.0.0

5 hours ago

New rules

Improvements

  • Support TypeScript type assertions in many rules (#2909) 6b41299
  • text-encoding-identifier-case: Support template literals (#2905) 9448c8c
  • prefer-math-min-max: Ignore Date objects (#2903) cd53d9e
  • prevent-abbreviations: Handle exported TS interfaces and enums (#2898) 6dc01d2
  • no-array-callback-reference: Skip TypeScript type predicate callbacks (#2897) 02364c8
  • prefer-spread: Skip autofix when it would drop comments (#2896) 6ff1467
  • no-useless-undefined: Flag return undefined for explicit undefined return types (#2876) 41fc9c2
  • no-unnecessary-polyfills: Improve performance (#2874) c88bf29
  • expiring-todo-comments: Add ignoreDates option (#2892) 95a288b
  • prevent-abbreviations: Recognize jQuery 42f5364
  • prefer-object-from-entries: Avoid auto-fixing generic reduce (#2878) bea9b20

Fixes

  • expiring-todo-comments: Fix partial version comparison (#2895) 51390e9
  • consistent-destructuring: Fix false positive for nested rest destructuring (#2894) 1cddfb5
  • consistent-destructuring: Fix false positive after reassignment (#2893) c7f57d0
  • consistent-function-scoping: Fix TypeScript false positives for lexical this (#2885) a383657
  • custom-error-definition: Fix class field autofix (#2887) 1359726
  • explicit-length-check: Fix || fallback false positives (#2889) 84246ec
  • explicit-length-check: Avoid unsafe autofix in negated comparisons (#2883) 73b043b
  • import-style: Fix false positive for type-only import (#2891) aea9954
  • no-unused-properties: Fix for JSX member access (#2890) 0ff698b
  • better-regex: Fix empty-pattern autofix (#2881) c201987
  • prefer-global-this: Fix for window-specific in checks (#2879) 6bf7537
  • prefer-native-coercion-functions: Fix false positive for TS type predicates (#2888) 4c4b565
  • prefer-set-has: Fix string false positives (#2882) c230c22
  • prefer-top-level-await: Fix false positive with Promise.all (#2884) 67faa7a

v63.0.0...v64.0.0

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

NewReleases is sending notifications on new releases.