ESLint 10.16.0 doubles config-merging speed and adds new fix suggestions for eqeqeq and no-eq-null
ESLint has released version 10.16.0, a minor update that speeds up how the linter merges configuration objects and adds new suggestions to three core rules. According to the release notes, the config merging step is now about two times faster in benchmarks with many matching config objects.
Why it matters
The speedup comes from an updated version of the config-array package. Merging is the step in which ESLint calculates the final configuration for a file from all config objects that match it. The team notes that merging is only one part of a lint run, so the effect on total time depends on the project, and no changes are required.
On the rules side, no-eq-null can now suggest replacing loose equality with strict equality, with or without undefined included, and eqeqeq gained additional suggestions that include comparisons with undefined. The no-new-native-nonconstructor rule suggests converting invalid constructor calls into valid function calls.
Four other core rules, no-invalid-this, no-shadow, no-unused-vars and no-use-before-define, were updated to handle edge cases, including TypeScript import-equals declarations and type assertions. Several bugs were fixed, such as circular references when formatting config errors. A separate fix adds an ESLint.CalculatedConfig type for calculateConfigForFile.