Is there any support for those? I saw some discussions about implementing this but there wasn't a final consent.
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.