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
- 1f048cbFix: no-implicit-coercion false positive with- String()(fixes #14623) (#14641) (Milos Djermanovic)
- e44ce0aFix: no-duplicate-imports allow unmergeable (fixes #12758, fixes #12760) (#14238) (Soufiane Boutahlil)
- e4f111bFix: arrow-body-style crash with object pattern (fixes #14633) (#14635) (Milos Djermanovic)
Documentation
- 123fb86Docs: Add Feedback Needed triage description (#14670) (Nicholas C. Zakas)
- 2e43dacDocs: fix- no-sequencesexample (#14643) (Nitin Kumar)
- 958ff4eDocs: add note for arrow functions in no-seq rule (#14578) (Nitin Kumar)
- 85a2725Docs: Update README team and sponsors (ESLint Jenkins)
Dependency Upgrades
- 1237705Upgrade: @eslint/eslintrc to 0.4.2 (#14672) (Milos Djermanovic)
- 8d1e75aUpgrade: glob-parent version in package.json (#14658) (Hamza Najeeb)
Chores
- d709abfChore: fix comment location in no-unused-vars (#14648) (Milos Djermanovic)
- ec28b5aChore: upgrade eslint-plugin-eslint-plugin (#14590) (薛定谔的猫)