New Jun 26, 2026

ESLint v10.6.0 released

Libraries, Frameworks, etc. All from ESLint Blog View ESLint v10.6.0 released on eslint.org

Highlights

New option checkRelationalComparisons in no-constant-binary-expression

ESLint v10.6.0 introduces a new option checkRelationalComparisons for the no-constant-binary-expression rule. When enabled, the rule reports relational comparisons using <, <=, >, or >= whose result is always constant based on their literal operands.

For example:

const value = "a" > "b"; // always `false`
while (0 <= 0) { // always `true`
    /* ... */
}

Rule refinements

The following rules have been tweaked to improve correctness and ensure more consistent or intuitive behavior in edge cases:

Features

Bug Fixes

Documentation

Chores

Scroll to top