ESLint v9.15.0 released

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

This release updates the @eslint/plugin-kit dependency to the latest version 0.2.3 which includes the fix for security advisory GHSA-7q7g-4xm8-89cq.

Highlights

meta.defaultOptions

Rules can now specify default options. ESLint will recursively merge any user-provided options elements on top of the default elements.

This feature makes it easier to work with options in rules.

// my-rule.js
export default {
    meta: {
        defaultOptions: [{
            alias: "basic",
            ignoreClassFields: false
        }],
        schema: [{
            type: "object",
            properties: {
                alias: {
                    type: "string"
                },
                ignoreClassFields: {
                    type: "boolean"
                }
            },
            additionalProperties: false
        }]
    },
    create(context) {

        // `context.options` is guaranteed to be an array with a single object
        // that has a string property `alias` and a boolean property `ignoreClassFields`.
        // If the rule is enabled with no options specified in the configuration file,
        // `alias` will be `"basic"`, and `ignoreClassFields` will be `false`.
        const [{ alias, ignoreClassFields }] = context.options;

        return { /* ... */ };
    }
};

This feature also allows document generators, other tools and integrations, and end users to easily find the default options for rules.

Other notable changes

  • Custom languages can now provide the normalizeLanguageOptions(languageOptions) method. The return value will be used as languageOptions when calling parse(), createSourceCode(), and applyLanguageOptions() methods and as the value of context.languageOptions property in rules.
  • The no-useless-computed-key rule now fully supports object destructuring patterns.

Features

Bug Fixes

Documentation

Chores

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

Retiring the contributor pool
3 min read

Retiring the contributor pool

After five years and more than $51,000 paid to contributors, we're retiring the contributor pool as AI-generated pull requests make it harder to keep the program focused on human contributions.

ESLint v10.15.0 released
2 min read

ESLint v10.15.0 released

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