github sindresorhus/eslint-plugin-unicorn v69.0.0

6 hours ago

New rules

Improvements

  • comment-content: Don't mutate commented-out multi-line code (#3413) bef80c8
  • consistent-boolean-name: Add ignore option and plural prefixes (#3423) 7cc1d9e
  • consistent-boolean-name: Don't crash on Svelte {#each} bindings (#3417) effc0e1
  • consistent-conditional-object-spread: Treat undefined/null fallback as an empty branch (#3401) 38eebbd
  • custom-error-definition: Allow no-substitution template literal for name (#3383) 594e050
  • custom-error-definition: Don't require options parameter when forwarded to super() inline (#3377) e931467
  • name-replacements: Exclude Vite type declaration (#3375) 396c2ed
  • no-computed-property-existence-check: Allow dynamic access to a known boolean value (#3420) add50ff
  • no-incorrect-template-string-interpolation: Ignore braces inside block comments (#3429) 2676b5d
  • no-nonstandard-builtin-properties: Allow stack on Error instances (#3416) b4a3527
  • no-return-array-push: Allow void operator to opt out (#3384) 046dc75
  • no-return-array-push: Don't report custom push methods that don't return arrays (#3427) ed1b57e
  • no-top-level-side-effects: Allow type-only exports (#3421) c896024
  • no-unnecessary-boolean-comparison: Fix false positive for destructured parameters and yield expressions (#3392) 26f37f8
  • no-unnecessary-global-this: Don't report existence checks (#3426) 668ec36
  • no-unreadable-object-destructuring: Allow computed keys when a rest element is present (#3400) 3d3b654
  • no-unsafe-string-replacement: Ignore non-string receivers (#3442) 05c7c25
  • no-unused-array-method-return: Restrict values() reporting to arrays (#3434) 9e12972
  • no-useless-boolean-cast: Keep Boolean() around possibly-undefined values (#3397) d35e538
  • no-useless-concat: Skip concats that form a ${…} placeholder (#3428) a39fe66
  • no-useless-else: Autofix else bodies containing JSX (#3419) 3c17b69
  • no-useless-iterator-to-array: Improve fixes (#3432) 3bc8c69
  • prefer-at: Only check positive string index access with checkAllIndexAccess (#3415) 68d0d25
  • prefer-code-point: Don't suggest the swap when the result feeds arithmetic (#3430) 9083ae7
  • prefer-continue: Don't report when the if body exits the loop (#3414) 2187122
  • prefer-minimal-ternary: Add checkVaryingCallee option (#3381) c397f87

v68.0.0...v69.0.0

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

NewReleases is sending notifications on new releases.