More than 100 powerful ESLint rules
consistent-empty-array-spread
(#2349) 8d7954cprefer-string-raw
(#2339) 4f1400ano-invalid-fetch-options
(#2338) 342aafbno-magic-array-flat-depth
(#2335) bc17428prefer-structured-clone
(#2329) 497519eno-array-method-this-argument
: Check Array.fromAsync()
(#2330) 99489b9prefer-number-properties
: Add checkNaN
option (#2315) d30de50template-indent
: Support member expression paths in tags
and functions
(#2346) aabcf1dprefer-number-properties
: Don't require by default for Infinity
/-Infinity
to be written as Number.POSITIVE_INFINITY
/Number.NEGATIVE_INFINITY
(#2312) e0dfed2escape-case
: Ignore String.raw
(#2342) 45bd444no-hex-escape
: Ignore String.raw
(#2343) cc02a7fprefer-dom-node-dataset
: Ignore await
ed getAttribute
call (#2334) 45f23d5prevent-abbreviations
: Support non-ASCII filenames (#2308) 28762c8throw-new-error
: Check all call expressions instead of just argument of ThrowStatement
(#2332) 1626852https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v52.0.0...v53.0.0
no-single-promise-in-promise-methods
(#2258) 8f0ee89no-await-in-promise-methods
(#2259) a3be554no-anonymous-default-export
(#2273) c035216filename-case
: Add option for multiple file extensions (#2186) 4594020import-style
: Support node:
protocol (#2297) c28a086prefer-array-find
: Check array.filter().at(0)
(#2284) e6074feprefer-prototype-methods
: Check Object.prototype
methods from globalThis
(#2286) 1792d33no-array-callback-reference
: Check logical expressions and check ternaries deeply (#2289) 231529aprefer-spread
: Fix it to not report on optional chaining (#2304) df1ff1cno-anonymous-default-export
: Uppercase class name (#2282) 5ce4169https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v51.0.1...v52.0.0
prefer-node-protocol
: Fix false positive on bun:*
modules (#2272) 43fc638https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v51.0.0...v51.0.1
consistent-destructuring
: Remove from recommended
preset (#2260) 702d51bno-array-method-this-argument
: Check Array.from()
(#2262) 797caeeno-thenable
: Fix crash on {[Symbol.prototype]: 0}
(#2248) 3c7d7c0prefer-prototype-methods
: Fix argument of isMethodCall
(#2247) 3b504fahttps://github.com/sindresorhus/eslint-plugin-unicorn/compare/v50.0.1...v51.0.0
no-unnecessary-polyfills
: Fix missing dependency error (#2242) 3df16068https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v50.0.0...v50.0.1
no-unnecessary-polyfills
(#1717) 6788d86no-useless-undefined
: Add checkArrowFunctionBody
option (#2232) 9d7048cprefer-negative-index
: Check TypedArray#subarray()
(#2237) 6708a30no-useless-undefined
: Ignore React state setters (#2223) 42881baprefer-module
: Allow module
as TSTypeParameter name (#2213) 8f61f7cstring-content
: Fix JSX autofix for newlines, etc. (#2222) b95e75ehttps://github.com/sindresorhus/eslint-plugin-unicorn/compare/v49.0.0...v50.0.0
expiring-todo-comments
: Support monorepos (#2159) ac51d40prefer-module
: Allow module
as TSIndexSignature names or TSTypeAliasDeclaration ids (#2209) ea94b3bv
flag (#2195) 28e7498prefer-event-target
: Ignore EventEmitter
from @angular/core
and eventemitter3
(#2197) 1629ebehttps://github.com/sindresorhus/eslint-plugin-unicorn/compare/v48.0.1...v49.0.0
no-empty-file
: Fix directive check for TypeScript parser (#2180) 1bb9ce8https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v48.0.0...v48.0.1
no-unsafe-regex
rule (#2135) 7b473aaprefer-top-level-await
: Ignore promises inside Promise.{all,allSettled,any,race}()
(#2139) d3f6b60no-process-exit
: Ignore when using node:worker_threads
module (#2136) 2907805prefer-array-some
: Ignore filter calls with literal argument (#2097) 7a32edbprefer-modern-math-api
: Check cases that Math.hypot()
should be preferred (#2080) 9bbc948explicit-length-check
: Ignore .length || number
(#1977) b9b8794prefer-dom-node-dataset
: Fix edge cases (#2171) b2d7378prefer-dom-node-dataset
: Remove broken fix for element.setAttribute
(#2169) 61234afno-lonely-if
: Fix an edge case (#2168) ca837a8no-useless-undefined
: Turn parameter with undefined
default value into optional parameter (#2138) 4aa7d60no-thenable
: Fix Object.fromEntries()
check (#2130) f3265b9prefer-dom-node-remove
: Fix incorrect auto-fix (#2084) 74bb36dhttps://github.com/sindresorhus/eslint-plugin-unicorn/compare/v47.0.0...v48.0.0
eslint@>=8.38.0
(#2066) 04af765prefer-at
, prefer-event-target
, and prefer-string-replace-all
in recommended config (#2073) a3bc120prefer-blob-reading-methods
(#2065) 2bb1a04prefer-top-level-await
: Ignore .cjs
files (#2072) 0c3ccb1prefer-spread
: Stop checking Array.from
call with map function (#2064) f5beccbprefer-dom-node-text-content
: Check optional chaining (#2062) 8d6d007prefer-dom-node-{append,remove}
: Check optional chaining (#2061) 443999bprefer-number-properties
: Fix false positives (#2050) 124bfa7https://github.com/sindresorhus/eslint-plugin-unicorn/compare/v46.0.0...v47.0.0