Update codebase to use ES6 features supported by Node 4.0
See original GitHub issueContinuing the discussion started in #6356, it would be awesome to upgrade our codebase to benefit from ES6 features that are available after dropping Node < 4 support.
Below are some of the ideas already mentioned:
If we’re going to start using es6, we should consider using https://github.com/mohebifar/lebab if we’re going to upconvert.
For dropping Node < 4, should we also convert the code to use some of the ES6 features at the same time, as well as modify our .eslintrc file for this repository? Or should we leave it as is and change it as we go?
I’d like to use
eslint-plugin-node
😇
- node/no-deprecated-api - Disallow deprecated API.
- node/no-missing-require - Disallow
require()
s for files that don’t exist.- node/no-unpublished-require - Disallow
require()
s for files that are not published.- node/no-unsupported-features - Disallow unsupported ECMAScript features on the specified version.
Especially,
node/no-unsupported-features
would help us.
Issue Analytics
- State:
- Created 7 years ago
- Reactions:2
- Comments:44 (43 by maintainers)
Top Results From Across the Web
Expressive ES6 features that shine in Node.js 4.0 - RethinkDB
The developers behind Node.js released version 4.0 last week. The new version is a major update that includes significant improvements and ...
Read more >Node.js 4.0.0 arrives with ECMAScript 6 backing - InfoWorld
The latest upgrade of the server-side JavaScript technology combines the Node.js and io.js code bases.
Read more >Node v4.0.0 (Current)
Node.js® is a JavaScript runtime built on Chrome's V8 JavaScript engine.
Read more >What you need to know about Node.js 4.0.0 | Dynatrace news
Node.js 4.0.0 aims to provide an easy update path for current users ... list of currently supported ES6 features here: ES6 in Node.js...
Read more >Node v4.0.0 is here! - LinkedIn
Node.js v4 comes with a plan for long-term support (LTS) and a regular release cycle, and now formally follows semantic versioning (SemVer) ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Some easier wins:
On a side note, I’d be willing to go through and make the necessary changes for both of these (most likely in batches to make it easier).
Sure, it’s the reason I suggested
node/no-unsupported-features
rule. It would warn it if we use unsupported ES6 features.It sounds good that we enable those 2 rules to start.