
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
0b1d65aUpdate: Improve report location for array-callback-return (refs #12334) (#13109) (Milos Djermanovic)d3aac53Update: report backtick loc in no-unexpected-multiline (refs #12334) (#13142) (Milos Djermanovic)bcafd0fUpdate: Add ESLint API (refs eslint/rfcs#40) (#12939) (Kai Cataldo)5c1bdebUpdate: Improve report location for getter-return (refs #12334) (#13164) (Milos Djermanovic)e7c1d4bUpdate: deprecate Node.js & CommonJS rules (#12898) (Kai Cataldo)af4472fUpdate: Improve report location for new-cap (refs #12334) (#13136) (Milos Djermanovic)a784dacUpdate: Improve report location newline-per-chained-call (refs #12334) (#13116) (Milos Djermanovic)5e07574Update: Improve report location for space-before-function-paren (#13128) (Chiawen Chen)17e2fe4Update: Improve error message for fatal fixer errors (#13120) (Brad Zacher)438dcbbUpdate: Improve report location for comma-style (refs #12334) (#13111) (Chiawen Chen)85b7254Update: no-inner-declarations false negative in non-block (fixes #12222) (#13062) (Anix)6631ef1Update: Improve report location for no-empty-function (refs #12334) (#13121) (Milos Djermanovic)
Bug Fixes
d85e291Fix: yoda left string fix for exceptRange (fixes #12883) (#13052) (Anix)8e7a2d9Fix: func-call-spacing “never” reports wrong message (fixes #13190) (#13193) (Milos Djermanovic)ebc28d7Fix: Remove default .js from --ext CLI option (#13176) (Brandon Mills)c9a5035Fix: newBasePath should be an absolute path (fixes #12850) (#13078) (Nick Harris)301b450Fix: no-extra-parens export default sequence expression false positive (#13096) (Milos Djermanovic)bfa811cFix: init error in extending recommended config (fixes #12707) (#12738) (YeonJuan)7551f0cFix: no check for shadowed Object (fixes #12809) (#13115) (Anix)988d842Fix: add end location to report in no-useless-concat (refs #12334) (#13110) (Milos Djermanovic)
Documentation
56d2beeDocs: fix typos (#13204) (Nitin Kumar)516f253Docs: Adds import example for object-curly-newline rule (refs #12018) (#13177) (Luke Lewis)b398e0bDocs: add rule comment in prefer-rest-params doc (#13191) (YeonJuan)c41de38Docs: fix curly multi-or-nest examples with comments (refs #12972) (#13151) (Milos Djermanovic)57221d5Docs: fix eslint comment in no-inner-declarations examples (#13152) (Milos Djermanovic)5dfd4ebDocs: examples with arrow functions in no-return-assign (fixes #13135) (#13138) (Anix)adc8fa8Docs: clarify exceptions in spaced-comment (fixes #13032) (#13126) (Anix)b228f95Docs: Update README team and sponsors (ESLint Jenkins)
Dependency Upgrades
3eeae56Upgrade: some (dev) deps (#13155) (薛定谔的猫)95e1c70Upgrade: levn@0.4.1 (fixes #9366) (#13140) (Kai Cataldo)

