question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Update codebase to use ES6 features supported by Node 4.0

See original GitHub issue

Continuing 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:

@mikesherov:

If we’re going to start using es6, we should consider using https://github.com/mohebifar/lebab if we’re going to upconvert.

@ilyavolodin @platinumazure:

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?

@mysticatea:

I’d like to use eslint-plugin-node 😇

Especially, node/no-unsupported-features would help us.

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Reactions:2
  • Comments:44 (43 by maintainers)

github_iconTop GitHub Comments

4reactions
kaicataldocommented, Jul 8, 2016

Some easier wins:

  • Template literals and the prefer-template and template-curly-spacing (configured with “never”? Don’t have a strong preference on this one) rules
  • Object shorthand notation and the object-shorthand (configured with “always”) and no-useless-computed-key rules

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).

4reactions
mysticateacommented, Jun 14, 2016

Keep in mind that Node 4 doesn’t fully implement ES6, so we’re still left with a subset of features we can use.

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.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found