ESLint v7.0.0-rc.0 released
by Kai Cataldo - 24 April 2020We just pushed ESLint v8.0.0-rc.0, which is a new prerelease version for ESLint v8. This release adds some new features and fixes several bugs found in the previous release.
Highlights
- This release includes a new asynchronous ESLint API for use in Node.js environments. This will allow for the support of ES Module configuration files and plugins and is a prerequisite for implementing parallel linting.
- Node.js and CommonJS core rules have been deprecated in favor of eslint-plugin-node.
- The reported error location has been fine-tuned in a number of core rules.
Installing
Since this is a pre-release version, you will not automatically be upgraded by npm. You must specify the next
tag when installing:
npm i eslint@next --save-dev
You can also specify the version directly:
npm i eslint@7.0.0-rc.0 --save-dev
Migration Guide
As there are a lot of changes, we've created a migration guide describing the changes in great detail along with the steps you should take to address them. We expect that most users should be able to upgrade without any build changes, but the migration guide should be a useful resource if you encounter problems.
Enhancements
0b1d65a
Update: Improve report location for array-callback-return (refs #12334) (#13109) (Milos Djermanovic)d3aac53
Update: report backtick loc in no-unexpected-multiline (refs #12334) (#13142) (Milos Djermanovic)bcafd0f
Update: Add ESLint API (refs eslint/rfcs#40) (#12939) (Kai Cataldo)5c1bdeb
Update: Improve report location for getter-return (refs #12334) (#13164) (Milos Djermanovic)e7c1d4b
Update: deprecate Node.js & CommonJS rules (#12898) (Kai Cataldo)af4472f
Update: Improve report location for new-cap (refs #12334) (#13136) (Milos Djermanovic)a784dac
Update: Improve report location newline-per-chained-call (refs #12334) (#13116) (Milos Djermanovic)5e07574
Update: Improve report location for space-before-function-paren (#13128) (Chiawen Chen)17e2fe4
Update: Improve error message for fatal fixer errors (#13120) (Brad Zacher)438dcbb
Update: Improve report location for comma-style (refs #12334) (#13111) (Chiawen Chen)85b7254
Update: no-inner-declarations false negative in non-block (fixes #12222) (#13062) (Anix)6631ef1
Update: Improve report location for no-empty-function (refs #12334) (#13121) (Milos Djermanovic)
Bug Fixes
d85e291
Fix: yoda left string fix for exceptRange (fixes #12883) (#13052) (Anix)8e7a2d9
Fix: func-call-spacing "never" reports wrong message (fixes #13190) (#13193) (Milos Djermanovic)ebc28d7
Fix: Remove default .js from --ext CLI option (#13176) (Brandon Mills)c9a5035
Fix: newBasePath should be an absolute path (fixes #12850) (#13078) (Nick Harris)301b450
Fix: no-extra-parens export default sequence expression false positive (#13096) (Milos Djermanovic)bfa811c
Fix: init error in extending recommended config (fixes #12707) (#12738) (YeonJuan)7551f0c
Fix: no check for shadowed Object (fixes #12809) (#13115) (Anix)988d842
Fix: add end location to report in no-useless-concat (refs #12334) (#13110) (Milos Djermanovic)
Documentation
56d2bee
Docs: fix typos (#13204) (Nitin Kumar)516f253
Docs: Adds import example for object-curly-newline rule (refs #12018) (#13177) (Luke Lewis)b398e0b
Docs: add rule comment in prefer-rest-params doc (#13191) (YeonJuan)c41de38
Docs: fix curly multi-or-nest examples with comments (refs #12972) (#13151) (Milos Djermanovic)57221d5
Docs: fix eslint comment in no-inner-declarations examples (#13152) (Milos Djermanovic)5dfd4eb
Docs: examples with arrow functions in no-return-assign (fixes #13135) (#13138) (Anix)adc8fa8
Docs: clarify exceptions in spaced-comment (fixes #13032) (#13126) (Anix)b228f95
Docs: Update README team and sponsors (ESLint Jenkins)
Dependency Upgrades
3eeae56
Upgrade: some (dev) deps (#13155) (薛定谔的猫)95e1c70
Upgrade: levn@0.4.1 (fixes #9366) (#13140) (Kai Cataldo)