
Highlights
New defineConfig() and globalIgnores() helpers
This release introduces the defineConfig() and globalIgnores() helpers for configuration files. The defineConfig() helper brings type safety into your configuration file and also enables you to use the new extends key. The globalIgnores() helper ensures that your global ignores aren’t accidentally turned into local ignores. Here’s an example using both:
// eslint.config.js
import { defineConfig, globalIgnores } from "eslint/config";
import js from "@eslint/js";
export default defineConfig([
{
files: ["src/**/*.js"],
plugins: { js },
extends: ["js/recommended"], // extend the plugin's recommended config
rules: {
semi: "error"
}
},
globalIgnores(["dist", "build"])
]);
We think these helpers make creating and managing configuration files a lot easier. You can find all the details in the announcement blog post.
Features
Bug Fixes
19c0127fix: improve message forno-consolesuggestions (#19483) (Francesco Trotta)49e624ffix: improve error message for falsy parsed JS AST (#19458) (Josh Goldberg ✨)
Documentation
86c5f37docs: Update README (GitHub Actions Bot)fbdeff0docs: Update README (GitHub Actions Bot)c9e8510docs: generate deprecation notice in TSDoc comments from rule metadata (#19461) (Francesco Trotta)2f386addocs: replacevarwithconstin rule examples (#19469) (Tanuj Kanti)0e688e3docs: Update README (GitHub Actions Bot)06b596ddocs: Restore the carrot to the position where the search input was lost (#19459) (Amaresh S M)
