ricardofbarros / linter-js-standard

Atom linter plugin for JavaScript, using JavaScript Standard Style
https://atom.io/packages/linter-js-standard
MIT License
99 stars 48 forks source link

I got an reserved word error for await statements #185

Closed rbecheras closed 7 years ago

rbecheras commented 7 years ago

capture d ecran de 2017-05-11 22-18-44

But I use linter-js-standard v3.9.1:

capture d ecran de 2017-05-11 22-19-36

Which use standard v8.6.0 as dependency

https://github.com/ricardofbarros/linter-js-standard/blob/master/package.json

And standard seems support async/await since standard v8.3.0 (> v8.6.0)

https://github.com/feross/standard/issues/645#issuecomment-250550504

capture d ecran de 2017-05-11 22-22-38

What's wrong ?

sonicdoe commented 7 years ago

This was already answered in https://github.com/standard/standard/issues/884#issuecomment-307155068:

I think this is working normally. The error isn't very informative, but the await keyword can only be used inside of a function marked async. So the sample above is correctly marked as an error.