ESLint v9.25.0 released

We just pushed ESLint v9.25.0, which is a minor release upgrade of ESLint. This release adds some new features and fixes several bugs found in the previous release.

Highlights

allowObjects option for no-restricted-properties

This release adds a new option allowObjects to the no-restricted-properties rule. The allowObjects option allows you to restrict a property globally but allow specific objects to use it.

/* eslint no-restricted-properties: ["error", { "property": "push", "allowObjects": ["router", "history"] } ] */

router.push('/home');   // allowed
history.push('/about'); // allowed

myArray.push("/info");  // not allowed

TypeScript Syntax Support in Core Rules

As announced in the ESLint v9.23.0 release blog post, we are actively working to add TypeScript syntax support to core rules.

ESLint v9.25.0 introduces full TypeScript syntax support for four more core rules. These rules are:

These rules can now be used to lint TypeScript files as well as regular JavaScript. To lint TypeScript code, be sure to use @typescript-eslint/parser, or another compatible parser.

Features

Bug Fixes

  • 910bd13 fix: nodeTypeKey not being used in NodeEventGenerator (#19631) (StyleShit)

Documentation

Chores

  • 88dc196 chore: upgrade @eslint/js@9.25.0 (#19636) (Milos Djermanovic)
  • 345288d chore: package.json update for @eslint/js release (Jenkins)
  • affe6be chore: upgrade trunk (#19628) (sethamus)
  • dd20cf2 test: fix no-loop-func test with duplicate variable reports (#19610) (Milos Djermanovic)
  • bd05397 chore: upgrade @eslint/* dependencies (#19606) (Milos Djermanovic)
  • 22ea18b chore: replace invalid int type with number inside JSDocs. (#19597) (Arya Emami)

The latest ESLint news, case studies, tutorials, and resources.

ESLint v9.25.1 released
1 min read

ESLint v9.25.1 released

We just pushed ESLint v9.25.1, which is a patch release upgrade of ESLint. This release fixes several bugs found in the previous release.

Introducing bulk suppressions
3 min read

Introducing bulk suppressions

How to enable stricter linting incrementally

ESLint v9.24.0 released
3 min read

ESLint v9.24.0 released

We just pushed ESLint v9.24.0, which is a minor release upgrade of ESLint. This release adds some new features and fixes several bugs found in the previous release.