ESLint v7.28.0 released

by Milos Djermanovic - 4 June 2021

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.



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/"        - original file
context.getFilename()         // "/project/" - virtual filename assigned to a code block


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


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

Bug Fixes


Dependency Upgrades

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