
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
19c0127
fix: improve message forno-console
suggestions (#19483) (Francesco Trotta)49e624f
fix: improve error message for falsy parsed JS AST (#19458) (Josh Goldberg ✨)
Documentation
86c5f37
docs: Update README (GitHub Actions Bot)fbdeff0
docs: Update README (GitHub Actions Bot)c9e8510
docs: generate deprecation notice in TSDoc comments from rule metadata (#19461) (Francesco Trotta)2f386ad
docs: replacevar
withconst
in rule examples (#19469) (Tanuj Kanti)0e688e3
docs: Update README (GitHub Actions Bot)06b596d
docs: Restore the carrot to the position where the search input was lost (#19459) (Amaresh S M)