ESLint Adds ES2020 Support
Written by Ian Elliot   
Thursday, 25 June 2020

The open source JavaScript linting utility ESLint has been updated with a major new version followed by a couple of minor updates. ESLint 7 adds support for ES2020, removes support for Node.js version 8, and has a number of improvements to the developer experience.

ESLint can be used for code analysis using linting, a type of static analysis. It was created to allow developers to create their own linting rules, so all rules are completely pluggable. The default rules are written just like any plugin rules would be. ESLint is an OpenJS Foundation project.

eslint

The major changes to the new version start with the addition of support for ES2020. Given the relatively minor changes to ES2020, the changes in ESLint were largely changes to rules to add ES2020 BigInt support. The latest release also adds ES2020 syntax support for several language features in the default parser and core rules, including the Nullish coalescing operator and for import.meta. The developers say they are aware that optional chaining support is still missing, and they're working on it with the aim of adding it to the next minor release.

Another improvement is a new ESLint class that provides an asynchronous API to provide an alternative to the CLIengine class. This has been blocking the implementation of features such as parallel linting and supporting ES modules in shareable configs/parsers/plugins/formatters. The new ESLint class provides an asynchronous API that ESLint core will use from here onwards. The developers say CLIEngine will remain in core for the foreseeable future but may be removed in a future major version.

The other main change of note is the dropping of support for Node.js 8, which reached end-of-life in December 2019. Taking advantage of the change, the developers have moved ten Node.js specific rules from the core to the eslint-plugin-node plugin.

The 7.0 release of ESLint was slow to appear by ESLint standards, and the original creator ESLint, Nicholas Zakas, apologised, saying:

"ESLint v7.0.0 took a long time to release. We know the five-month lag between releases wasn’t good for the project or community. We are looking at what went wrong and how to not repeat this for future major releases. We try to limit major releases to once per year. We try to do regular updates every two weeks, though, and we haven’t done that in five months. That’s what we need to fix."

eslint

More Information

ESLint Homepage

Related Articles

ESLint Adds Suggestions API

ES2020 Finalized

Orion 16 Improves Node Server

ReSharper Gets Integrated Spell Checker

Language Tooling Enhancements in Orion 

 

To be informed about new articles on I Programmer, sign up for our weekly newsletter, subscribe to the RSS feed and follow us on, Twitter, Facebook or Linkedin.

Banner


Eclipse IoT Developer Survey 2020
21/10/2020

The Eclipse Foundation’s IoT Working Group has released the results of its 2020 IoT Developer Survey. Agriculture emerges as the leading industry focus area and security as the top concern. Two thir [ ... ]



Edge Tools Added To VS Code
02/10/2020

Microsoft has announced the general availability of Microsoft Edge Tools for VS Code extension, giving developers the option of embedding the browser developer tools into Visual Studio Code, aka VS Co [ ... ]


More News

square

 



 

Comments




or email your comment to: comments@i-programmer.info

<ASIN:1871962420>

<ASIN:1871962579>

 

Last Updated ( Thursday, 25 June 2020 )