New Apr 18, 2025

ESLint v9.25.0 released

Libraries, Frameworks, etc. All from ESLint Blog View ESLint v9.25.0 released on eslint.org

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

Documentation

Chores

Scroll to top