npm eslint-plugin-unicorn 68.0.0

6 hours ago

Breaking

Awesome

Now 300+ rules 🎉

New rules

Improvements

  • Improve rule performance (#3339) 42abe74
  • Harden rules (#3305) 34ca8f6
  • Harden rules (#3299) d7ce07e
  • prefer-short-arrow-method: Remove from recommended preset (#3345) 0cfd77a
  • prefer-type-literal-last: Remove from unopinionated preset and stop checking intersection types (#3320) 447c665
  • consistent-boolean-name: Do not check destructured bindings (#3324) fb0cfe0
  • logical-assignment-operators: Do not assume the base rule's defaultOptions exist (#3321) 253e25f
  • logical-assignment-operators: Improve error message (#3302) 3ec8fec
  • name-replacements: Add more default replacements (#3365) f968bf3
  • new-for-builtins: Cover more builtins (#3361) e04ac43
  • no-array-splice: Only report fresh, non-escaping local arrays (#3301) babb873
  • no-break-in-nested-loop: Handle unlabeled continue in nested switch statements (#3335) ca893ba
  • no-declarations-before-early-exit: Ignore initializers containing await or yield (#3303) 6d98190
  • no-incorrect-template-string-interpolation: Remove from unopinionated preset and fix false-positive (#3319) 39dc546
  • no-manually-wrapped-comments: Ignore some more comments (#3292) a545dfe
  • no-named-default: Don't drop comments in autofix (#3306) 44e7361
  • no-unsafe-property-key: Allow intrinsic string-mapping types as keys (#3343) ba6020f
  • no-useless-coercion: Flag +value, value + '', and value.toString() idioms (#3338) 23a52f6
  • no-useless-undefined: Flag return undefined for void return type (#3334) 488d5e3
  • prefer-array-find: Add .filter(…).slice(-1) support (#3360) b6ea1e2
  • prefer-early-return: Fix lexical declaration autofixes (#3325) e7771bd
  • prefer-identifier-import-export-specifiers: Check import attribute keys (#3287) fec43d2
  • prefer-includes-over-repeated-comparisons: Ignore distinct expressions compared against undefined (#3308) 78858ec
  • prefer-minimal-ternary: Report dynamic computed-key swaps (#3300) 72879c4
  • prefer-number-properties: Add parseFloat support (#3307) 4b891d3
  • prefer-object-iterable-methods: Preserve TypeScript casts on value access (#3327) d3a4d39

v67.0.0...v68.0.0

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

NewReleases is sending notifications on new releases.