ESLint v8.x end-of-life is 2024-10-05 and will not be maintained after that. Upgrade or consider long-term support options

ESLint v8.26.0 released

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

Highlights

  • The no-implicit-globals rule now supports /* exported */ directive comments.

  • ESLINT_USE_FLAT_CONFIG environment variable can now be used for more control over switching between the current and the new config system.

  • The @eslint/create-config utility to create ESLint config files has a new option --config:

    # npm 6.x
    npm init @eslint/config --config semistandard

    # npm 7+
    npm init @eslint/config -- --config semistandard

Features

Bug Fixes

  • df77409 fix: use baseConfig constructor option in FlatESLint (#16432) (Milos Djermanovic)
  • 33668ee fix: Ensure that glob patterns are matched correctly. (#16449) (Nicholas C. Zakas)
  • 740b208 fix: ignore messages without a ruleId in getRulesMetaForResults (#16409) (Francesco Trotta)
  • 8f9759e fix: --ignore-pattern in flat config mode should be relative to cwd (#16425) (Milos Djermanovic)
  • 325ad37 fix: make getRulesMetaForResults return a plain object in trivial case (#16438) (Francesco Trotta)
  • a2810bc fix: Ensure that directories can be unignored. (#16436) (Nicholas C. Zakas)
  • 35916ad fix: Ensure unignore and reignore work correctly in flat config. (#16422) (Nicholas C. Zakas)

Documentation

  • 651649b docs: Core concepts page (#16399) (Ben Perlmutter)
  • 631cf72 docs: note --ignore-path not supported with flat config (#16434) (Andy Edwards)
  • 1692840 docs: fix syntax in examples for new config files (#16427) (Milos Djermanovic)
  • d336cfc docs: Document extending plugin with new config (#16394) (Ben Perlmutter)

Chores

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

Trunk becomes ESLint gold sponsor
1 min read

Trunk becomes ESLint gold sponsor

We are happy to announce that Trunk is a gold sponsor of ESLint. We are grateful to founders Eli Schleifer and David Apirian, as well as the whole Trunk team.

ESLint v9.9.1 released
1 min read

ESLint v9.9.1 released

We just pushed ESLint v9.9.1, which is a patch release upgrade of ESLint. This release fixes several bugs found in the previous release.