ESLint v8.37.0 released

We just pushed ESLint v8.37.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

  • Rules can now use SourceCode#getScope(node) to get the scope of the given node. The node argument is mandatory. This method works the same as context.getScope() but isn’t limited to the currently traversed node. The context.getScope() method is now considered deprecated in favor of SourceCode#getScope(node). This change is part of the implementation of language plugins.
  • Parsers and plugins can now export a meta object with name and version properties to allow for easier debugging and more effective caching. In the new config system, ESLint uses these values when serializing configuration objects (for example, the –print-config CLI option) and when determining whether cached lint results (the --cache CLI option) are still valid. If a parser/plugin provides meta, ESLint can now invalidate caches when a new version of the parser/plugin is installed.
  • In the new config system, languageOptions.parser must now be a parser object. Referencing parsers by "pluginName/parserName" is no longer supported.
  • The require-unicode-regexp rule now provides suggestions for some of the problems it reports.

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.