github sindresorhus/eslint-plugin-unicorn v25.0.0

latest releases: v52.0.0, v51.0.1, v51.0.0...
3 years ago

New rules

Renamed rules

We improved the naming and name consistency of some rules. Sorry about the churn.

If you use the recommended preset and you're not overriding any rules, you don't need to do anything.

  • no-fn-reference-in-iteratorno-array-callback-reference
  • no-array-instanceofno-instanceof-array
  • no-reduceno-array-reduce
  • prefer-datasetprefer-dom-node-dataset
  • prefer-flat-mapprefer-array-flat-map
  • prefer-replace-allprefer-string-replace-all
  • prefer-starts-ends-withprefer-string-starts-ends-with
  • prefer-text-contentprefer-dom-node-text-content
  • prefer-trim-start-endprefer-string-trim-start-end
  • prefer-event-keyprefer-keyboard-event-key
  • prefer-node-appendprefer-dom-node-append
  • prefer-node-removeprefer-dom-node-remove

20c6341

Improvements

  • explicit-length-check: Make rule work in many more cases (#943) f3bc798
  • explicit-length-check: Check unsafe LogicalExpressions (#952) a1b60ad
  • explicit-length-check: Check Boolean(foo.length) (#951) f4577f7
  • explicit-length-check: Check more cases (#941) 83a6453
  • new-for-builtins: Ignore Object(x) === x and Object(x) !== x (#944) 5c7ea92
  • explicit-length-check: Rewrite rule (#938) 94ae87a

v24.0.0...v25.0.0

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

NewReleases is sending notifications on new releases.