ESLint v7.28.0 released
by Milos Djermanovic - 4 June 2021We 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
Enhancements
Bug Fixes
1f048cb
Fix: no-implicit-coercion false positive withString()
(fixes #14623) (#14641) (Milos Djermanovic)e44ce0a
Fix: no-duplicate-imports allow unmergeable (fixes #12758, fixes #12760) (#14238) (Soufiane Boutahlil)e4f111b
Fix: arrow-body-style crash with object pattern (fixes #14633) (#14635) (Milos Djermanovic)
Documentation
123fb86
Docs: Add Feedback Needed triage description (#14670) (Nicholas C. Zakas)2e43dac
Docs: fixno-sequences
example (#14643) (Nitin Kumar)958ff4e
Docs: add note for arrow functions in no-seq rule (#14578) (Nitin Kumar)85a2725
Docs: Update README team and sponsors (ESLint Jenkins)
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
d709abf
Chore: fix comment location in no-unused-vars (#14648) (Milos Djermanovic)ec28b5a
Chore: upgrade eslint-plugin-eslint-plugin (#14590) (薛定谔的猫)