github sindresorhus/eslint-plugin-unicorn v72.0.0

7 hours ago

Breaking

  • prefer-minimal-ternary: Rename checkVaryingCallee option to checkVaryingBase (#3508) 825b7b9

New rules

Improvements

  • Improve performance (#3531) 8233f95
  • consistent-boolean-name: Support Vue refs (#3555) 79e79d5
  • no-incorrect-template-string-interpolation: Ignore Unicode code point escapes (#3513) 36fdf1a
  • no-negated-comparison: Ignore relational comparisons with optional chaining (#3512) 7b7e28a
  • no-top-level-side-effects: Ignore <script setup> (#3542) af8fd60
  • no-unnecessary-array-flat-map: Handle TypeScript Vue files (#3545) b6d01a0
  • no-unsafe-property-key: Use type information for narrowed property keys (#3515) 69a6002
  • no-unused-array-method-return: Ignore expect assertions (#3552) 110cc58
  • no-useless-promise-resolve-reject: Handle awaited calls (#3504) 9b8a144
  • no-useless-template-literals: Ignore const assertions (#3543) 4367228
  • prefer-await: Add async IIFE suggestion (#3550) 305fb4b
  • prefer-dom-node-html-methods: Add options and add to recommended preset (#3541) 581ef47
  • prefer-export-from: Preserve JSDoc comments on single-const re-exports (#3544) e273ab6
  • prefer-short-arrow-method: Add consistent-as-needed option (#3514) c068745
  • prefer-simple-condition-first: Fix logic (#3530) a339abe
  • prefer-split-limit: Support array destructuring (#3554) b23f959
  • prefer-string-starts-ends-with: Detect slice comparisons (#3518) 98730de
  • prefer-minimal-ternary: Don't report object-varying member access by default (#3508) 825b7b9

v71.1.0...v72.0.0

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

NewReleases is sending notifications on new releases.