ESLint v10.16.0 was released on 27 November 2026. It is a minor release, so there are no breaking changes, but it adds editor suggestions to three core rules and fixes several false positives and crashes, especially in TypeScript code. If you lint with ESLint 10, the upgrade takes a minute and the new suggestions make some long-standing rules much less annoying to act on.

In this tutorial we upgrade a project, look at each new suggestion with real output from ESLint 10.16.0, and cover the bug fixes that may change what you see in CI. Source: the official v10.16.0 release notes.

Upgrade

npm install --save-dev [email protected]
npx eslint --version
# v10.16.0

With pnpm or Yarn, use pnpm add -D [email protected] or yarn add -D [email protected].

A quick refresher: fixes vs suggestions

ESLint has two ways to offer a code change:

  • Fixes are applied automatically by eslint --fix. They must be safe, meaning they never change what the code does.
  • Suggestions are shown in your editor (or returned by the API) and applied manually, one at a time. They are used when a change might alter behaviour and a human should decide.

All three new features in 10.16.0 are suggestions. That means eslint --fix behaves exactly as before; the help shows up in VS Code’s quick-fix menu and in the suggestions array of the Node.js API and JSON formatter.

The test project

Here is a flat config enabling the relevant rules:

// eslint.config.js
export default [
  {
    files: ['**/*.js'],
    rules: {
      eqeqeq: 'error',
      'no-eq-null': 'error',
      'no-new-native-nonconstructor': 'error',
      'no-unused-vars': 'error'
    }
  }
]

And a file with the kinds of mistakes these rules catch:

// sample.js
export function check(value) {
  if (value == null) return 'missing'
  if (value != undefined) return 'present'
  return 'other'
}

export const id = new Symbol('id')
export const big = new BigInt(10)

import { readFile, writeFile, } from 'node:fs/promises'
export const r = readFile

To see suggestions from the command line, use the JSON formatter: npx eslint -f json sample.js. The outputs below come from running exactly this setup on 10.16.0.

New: eqeqeq suggests comparing with both null and undefined

eqeqeq has always flagged == and !=. The tricky case is value == null, which is true for both null and undefined. Blindly replacing it with === null changes behaviour when value is undefined.

ESLint 10.16.0 (#21577) now offers two suggestions on line 2:

2 eqeqeq | Expected '===' and instead saw '=='.
   suggestion: Use '===' instead of '=='.
   suggestion: Use '===' to compare with both null and undefined.

The second suggestion rewrites the condition to:

if (value === null || value === undefined) return 'missing'

That keeps the original meaning while satisfying the rule. Pick the first suggestion only when you know value can never be undefined.

New: no-eq-null gets the same choice

no-eq-null is the stricter cousin that only targets comparisons with null. Before this release it reported the problem without any help. In 10.16.0 (#21512) it offers both options:

2 no-eq-null | Use '===' to compare with null.
   suggestion: Use '===' to compare with null only.
   suggestion: Use '===' to compare with both null and undefined.

If your team has avoided this rule because fixing hundreds of reports was tedious, the suggestions make a gradual cleanup more practical.

New: no-new-native-nonconstructor suggests removing new

Symbol and BigInt are functions, not constructors. new Symbol('id') throws a TypeError at runtime. The rule already caught this; now (#21576) it suggests the obvious fix:

7 no-new-native-nonconstructor | `Symbol` cannot be called as a constructor.
   suggestion: Remove `new`.
8 no-new-native-nonconstructor | `BigInt` cannot be called as a constructor.
   suggestion: Remove `new`.

Applying it gives Symbol('id') and BigInt(10). It is still a suggestion rather than a fix because removing new changes behaviour (from throwing to working), and ESLint leaves that decision to you.

Fixed: no-unused-vars suggestions with trailing commas

no-unused-vars already suggested removing unused imports. In 10.16.0, it handles trailing commas correctly (#21570). For line 10, the report is:

10 no-unused-vars | 'writeFile' is defined but never used.
   suggestion: Remove unused variable 'writeFile'.

Applying the suggestion produces import { readFile, } from 'node:fs/promises', a valid import that Prettier will tidy up.

Applying suggestions with the Node.js API

Editors apply suggestions for you, but you can also do it in scripts, for example in a codemod that applies the “both null and undefined” variant everywhere:

// apply-suggestions.mjs
import { ESLint } from 'eslint'
import { readFileSync, writeFileSync } from 'node:fs'

const eslint = new ESLint()
const [result] = await eslint.lintFiles(['sample.js'])
let source = readFileSync('sample.js', 'utf8')

// Apply from the end of the file so earlier ranges stay valid.
const edits = result.messages
  .filter(m => m.ruleId === 'eqeqeq')
  .map(m => m.suggestions?.find(s => s.desc.includes('both null and undefined')))
  .filter(Boolean)
  .map(s => s.fix)
  .sort((a, b) => b.range[0] - a.range[0])

for (const { range, text } of edits) {
  source = source.slice(0, range[0]) + text + source.slice(range[1])
}
writeFileSync('sample.js', source)

Review the diff before committing. Suggestions exist precisely because they deserve a human look.

TypeScript-related fixes

Several fixes in this release target code parsed with a TypeScript parser:

  • no-shadow now handles import x = require() type imports (TSImportEqualsDeclaration) (#21564).
  • no-use-before-define handles heritage clauses and qualified types (#21536).
  • no-invalid-this handles TypeScript assertions on callees (#21540).
  • A utility that finds the opening parenthesis of parameters now skips type parameters (#21531).

If you saw odd reports from these rules in TypeScript files, re-run lint after upgrading. Some warnings may disappear and a few real problems may now be reported correctly.

Other fixes

  • A new ESLint.CalculatedConfig type describes the return value of calculateConfigForFile() (#21483), which helps if you write tooling in TypeScript.
  • Formatting config errors no longer crashes on circular references (#21569).
  • The @eslint/config-array dependency was updated to ^0.23.7 (#21598).

Should you upgrade?

Yes, if you are already on ESLint 10. It is a drop-in minor release: your config and CI output stay the same except where a bug fix changes a report. The new suggestions mainly improve the editor experience. If you are still on ESLint 9, the bigger task is the move to v10 itself, which removed eslintrc support, so plan that separately.

Takeaway

ESLint 10.16.0 makes three rules more helpful by offering suggestions, with a particularly thoughtful option for == null comparisons that keeps undefined handling intact. Upgrade with one command, try the quick fixes in your editor, and re-check TypeScript files where no-shadow, no-use-before-define or no-invalid-this used to misbehave. Read the rule docs for eqeqeq for the full option list.