Jshint: ES7: async and await

Created on 29 Jun 2015  ·  5Comments  ·  Source: jshint/jshint

Is there any support for those? I saw some discussions about implementing this but there wasn't a final consent.

Duplicate

All 5 comments

Related/Duplicated: #1939

1) I think we should first support all the ES6 syntax before start implementing ES7 features.
2) Async Functions are only at stage 1, so the syntax can change a lot

Yeah, I tried using the experimental json key-value but it didn't work. Currently I can get along using /* jshint ignore:start|end*/ but would be good to stop linting those keywords with the resource file.

there is no "experimental" option yet, sorry. Anyways, this is a duplicate, lets keep it to the original issue.

The way jshint's parser is built does not make it very nice to support "experimental" features that may never make it as far as stage 2, or may change drastically before being ratified. It's very brittle, unlike projects such as Traceur or Babel which are built on traversing and transforming an AST. I hate to say it, but maybe eslint is the preferred solution for linting these experimental features, due to its AST-linting.

For the current status, see #2604

async/await are now supported as of version 2.10.1. Simply update your .jshintrc to use "esversion": 9.

See the CHANGELOG.md.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Daniel-Hug picture Daniel-Hug  ·  3Comments

arian picture arian  ·  7Comments

Sriram-Ramaswami picture Sriram-Ramaswami  ·  5Comments

timdown picture timdown  ·  7Comments

TheSavior picture TheSavior  ·  3Comments