New May 15, 2026

ESLint v10.4.0 released

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

Highlights

New includeIgnoreFile() helper

This release introduces the includeIgnoreFile() helper for configuration files that allows for including patterns from .gitignore files or any other files with gitignore-style patterns.

Previously available in the external package @eslint/compat, the new includeIgnoreFile helper function is exported from the eslint/config entrypoint and provides an extended API that allows multiple files to be included and patterns to be interpreted relative to the location of those files, which is a common use case for nested .gitignore files.

// eslint.config.js

import { defineConfig, includeIgnoreFile } from "eslint/config"; import { fileURLToPath } from "node:url";

const rootGitignorePath = fileURLToPath( new URL(".gitignore", import.meta.url) ); const nestedGitignorePath = fileURLToPath( new URL("some/other/folder/.gitignore", import.meta.url), );

export default defineConfig([ includeIgnoreFile([rootGitignorePath, nestedGitignorePath], { // option to interpret patterns relative to the locations of the specified files gitignoreResolution: true, }), { // your overrides }, ]);

Please see the Include .gitignore Files section for more details.

Features

Bug Fixes

Documentation

Chores

Scroll to top