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 v7.28.0 released

We just pushed ESLint v7.28.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

context.getPhysicalFilename()

Rules can now use the new method getPhysicalFilename() on the context object to get the full path of the file on disk without any code block information.

The difference between getPhysicalFilename and getFilename is observable when ESLint is used with processors:

context.getPhysicalFilename() // "/project/example.md"        - original file
context.getFilename() // "/project/example.md/0_0.js" - virtual filename assigned to a code block

Features

  • bb66a3d New: add getPhysicalFilename() method to rule context (fixes #11989) (#14616) (Nitin Kumar)

Enhancements

  • c545163 Update: support multiline /*eslint-env*/ directives (fixes #14652) (#14660) (薛定谔的猫)

Bug Fixes

Documentation

Dependency Upgrades

  • 1237705 Upgrade: @eslint/eslintrc to 0.4.2 (#14672) (Milos Djermanovic)
  • 8d1e75a Upgrade: glob-parent version in package.json (#14658) (Hamza Najeeb)

Chores

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

ESLint v9.10.0 released
2 min read

ESLint v9.10.0 released

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

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.