npm eslint-plugin-unicorn 48.0.0

latest releases: 56.0.0, 55.0.0, 54.0.0...
15 months ago

Improvements

  • Deprecate no-unsafe-regex rule (#2135) 7b473aa
  • prefer-top-level-await: Ignore promises inside Promise.{all,allSettled,any,race}() (#2139) d3f6b60
  • no-process-exit: Ignore when using node:worker_threads module (#2136) 2907805
  • prefer-array-some: Ignore filter calls with literal argument (#2097) 7a32edb
  • prefer-modern-math-api: Check cases that Math.hypot() should be preferred (#2080) 9bbc948
  • explicit-length-check: Ignore .length || number (#1977) b9b8794

Fixes

  • Fix crash on array holes (#2129) f10f1a6
  • prefer-dom-node-dataset: Fix edge cases (#2171) b2d7378
  • prefer-dom-node-dataset: Remove broken fix for element.setAttribute (#2169) 61234af
  • no-lonely-if: Fix an edge case (#2168) ca837a8
  • no-useless-undefined: Turn parameter with undefined default value into optional parameter (#2138) 4aa7d60
  • no-thenable: Fix Object.fromEntries() check (#2130) f3265b9
  • prefer-dom-node-remove: Fix incorrect auto-fix (#2084) 74bb36d

v47.0.0...v48.0.0

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

NewReleases is sending notifications on new releases.