npm eslint-plugin-unicorn 35.0.0

latest releases: 56.0.0, 55.0.0, 54.0.0...
3 years ago

New rules

Breaking

  • explicit-length-check: Remove greater-than-or-equal option (#1397) db1a2b5
    • It enabled a style that no one actually uses.

Improvements

  • no-array-reduce: Add allowSimpleOperations option (#1418) 153eb2c
  • no-array-callback-reference: Ignore jQuery methods (#1457) 7af9a6f
  • prevent-abbreviations: Ignore i18n and l10n (#1445) efdd90e
  • no-array-callback-reference: Ignore mobx-state-tree usage (#1455) 73c0dfd
  • new-for-builtins: Check WeakRef and FinalizationRegistry (#1450) fce9d1d
  • no-zero-fractions: Handle .0 correctly (#1444) fcca35d
  • new-for-builtins: Enforce new for SharedArrayBuffer and Proxy (#1438) 2ba83ad
  • no-null: Allow Object.create(null, …) (#1432) 768f301
  • number-literal-case: Support Vue SFC (#1434) ee9f609
  • no-object-as-default-parameter: Forbid destructuring (#1433) 3fcc4bb
  • prefer-spread: Better auto-fix (#1426) 7bdf0dd
  • prefer-array-some: Check cases comparing .find() with undefined (#1422) 3dc2f77
  • no-useless-spread: Check useless "iterable to array" (#1414) 61bc6a3
  • prefer-dom-node-text-content: Check destructuring, Use suggestion instead of auto-fix (#1417) c4bfc42
  • require-post-message-target-origin: Disable for TypeScript files (#1415) 741484a
  • prefer-add-event-listener: Update event types list (#1412) 7f88b2f
  • no-instanceof-array: Support Vue SFC (#1410) 3b22917
  • prevent-abbreviations: Add def (#1402) f783472
  • no-instanceof-array: Improve report location (#1389) 6512fbd
  • Use original quote when auto-fixing (#1411) bb81582

Fixes

v34.0.1...v35.0.0

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

NewReleases is sending notifications on new releases.