Breaking
- Require Node.js 22.13 (#3988) 6ae4251
no-async-promise-finally: Remove it from therecommendedandunopinionatedpresets (#3989) b670841- The rule also reports async cleanup that handles its own errors, so it is now opt-in.
New rules
require-spread-parentheses(#3999) b665c82prefer-options-parameter(#3991) d9ddeddprefer-regexp-exec(#3978) d267d61
Improvements
- Improve import performance by loading rules lazily (#3988) 6ae4251
- Keep JSDoc type inference when an ESLint directive comment is between the JSDoc comment and the code (#3973) e1b5f7c
no-immediate-mutation: AddcheckCollectionsoption (#3995) d17cfc0prefer-smaller-scope: AddcheckTypeAliasesoption (#3955) a6c2fdfprefer-ternary: AddcheckNestedTernariesoption (#3965) 08de788prefer-uint8array-base64,prefer-uint8array-hex: AddcheckBufferDecodingoption, and autofixBuffer.fromBase64()andBuffer.fromHex()(#3980) d8e24daconsistent-boolean-name: Ignore underscore-only parameters in TypeScript type signatures (#3986) f0ae743no-async-iterator-callback,no-async-promise-finally: Detect async callbacks in unreassigned localletandvarbindings (#3989) b670841no-immediate-mutation: Autofix more consecutive initializations (#3953) 8d9549ano-null: IgnoreObject.setPrototypeOf(foo, null)(#4005) 33941beno-unnecessary-default-arguments: Check generic functions (#3966) 3267899no-unnecessary-default-arguments: Autofix type-safe removals when type information is available (#3972) c9163ceno-unnecessary-nested-ternary: Simplify longer ternary chains (#3974) 201c6a7no-useless-coercion: Report redundant!!(#4000) 4f724e1no-useless-undefined: Ignorereturn undefinedin getters (#4004) a0df80fprefer-json-import: Detect JSON loaded throughcreateRequire(), with autofix (#3976) a8a814aprefer-logical-operator-over-ternary: Handle ternaries with anullorundefinedbranch in truthiness checks (#3994) 7d98f9bprefer-math-min-max: Only report comparisons of known numbers in TypeScript (#3967) cb13c2aprefer-minimal-ternary: Support member chains (#3968) d85a52fprefer-module: Ignore.ctsfiles (#4002) ba41e94prefer-simplified-conditions: Factor comparisons with any comparison operator (#3970) bf2986aprefer-string-raw: Ignore strings in import and export specifiers (#3983) 38e4329prefer-switch: Ignoreifchains that would put anelse ifinsidedefault(#3982) 6236734relative-url-style: Reduce dependencies (#3971) a2748a1