ESLint 10.7.0
ESLint 10.7.0 has been released — arriving just days after the previous release, this update packs several new features, important bug fixes, and quality-of-life improvements for JavaScript and TypeScript developers.
What's New in ESLint 10.7.0
This release introduces four notable features that expand ESLint's linting capabilities:
- New
errorClassNamesoption for thepreserve-caught-errorrule — allows developers to specify which error class names should trigger the rule, giving teams more control over caught-error handling patterns. - Constructor callback support in
max-nested-callbacks— the rule now accounts for constructor function callbacks, preventing false negatives in class-heavy codebases. - Computed
Number.parseIntdetection in theradixrule — the rule now correctly flags computed member access patterns, closing a long-standing gap in radix parameter enforcement. - Suggestions for
no-compare-neg-zero— instead of just flagging the issue, ESLint now offers auto-fix suggestions to replace-0comparisons withObject.is()equivalents. - Invalid radix values reporting — the
radixrule now reports invalid signed numeric radix values, catching edge cases that previously slipped through.
Bug Fixes
Version 10.7.0 squashes 10 bugs across the codebase. Key fixes include:
- Class expression handling — the
ignoreClassesWithImplementsoption in theno-unused-varsrule now correctly applies to class expressions, not just declarations. - Cause insertion — the
preserve-caught-errorfix now correctly inserts the cause parameter outside wrapping parentheses, resolving a formatting edge case. - Static template literals — the
eqeqeqrule now handles static template literal comparisons correctly, eliminating false positives. - Shadowed global fixes —
no-invalid-regexp,no-control-regex, andprefer-numeric-literalsall received fixes for false positives triggered by shadowed global variables likeRegExp,Number, andNaN. - Sequence expression parenthesization —
no-implicit-coercionnow correctly parenthesizes sequence expression operands.
Chores and Infrastructure
Behind the scenes, ESLint 10.7.0 updates several dependencies including @eslint/eslintrc to v3.3.6 and Prettier to v3.9.4. CI now includes Node.js 26 in the test matrix. The team also added ecosystem plugin testing on pull requests to catch integration issues earlier.
ESLint 10.7.0 is available now. Update with npm install eslint@latest or your preferred package manager.