github sindresorhus/eslint-plugin-unicorn v67.0.0

7 hours ago

New rules

Improvements

  • no-unreadable-new-expression: Remove from recommended preset (#3285) c9f452e
  • comment-content: Remove from recommended preset (#3269) 21cce8b
  • comment-content: Add checkUniformCase option (#3269) 21cce8b
  • consistent-class-member-order: Group static methods with other static members (#3239) 8f4de02
  • consistent-class-member-order: Improve error message (#3264) 47f9f21
  • dom-node-dataset: Flag .dataset assigned to a variable with preferAttributes (#3268) 79198cc
  • no-array-reduce: Suggest Math.sumPrecise() for sum reduces (#3261) 081936d
  • no-return-array-push: Disallow using push() and unshift() return values (#3244) d9ea7ab
  • no-unreadable-array-destructuring: Disallow property targets (#3245) 8b50359
  • no-unreadable-object-destructuring: Disallow property targets (#3245) 8b50359
  • no-useless-fallback-in-spread: Add checkTernary option (#3284) b2496fc
  • prefer-logical-operator-over-ternary: Improve nullish ternary detection (#3240) 4014a1e
  • prefer-minimal-ternary: Add checkComputedMemberAccess option (#3241) cf4c014
  • prefer-scoped-selector: Only apply to combined selectors (#3263) d715bad
  • prefer-scoped-selector: Report partially-scoped selector lists (#3259) cf88cdd
  • prefer-type-literal-last: Keep null and undefined last (#3281) f6a9dce
  • no-array-callback-reference: Harden the rule (#3230) dcc0cf8
  • no-declarations-before-early-exit: Harden side-effect detection (#3238) 1bad677
  • no-declarations-before-early-exit: Ignore React hook calls (#3280) de47dce
  • comment-content: Skip non-prose comments (#3236) 9c85b1f
  • no-empty-file: Don't report non-empty files parsed by a plain-text parser (#3270) 3b8b9a4
  • no-unsafe-property-key: Don't flag unique symbol keys (#3278) 3fa567e
  • no-unsafe-property-key: Ignore template literal types (#3247) b8d9602

v66.0.0...v67.0.0

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

NewReleases is sending notifications on new releases.