I posted an issue on atom linter-js-standard plugin, but I guess it is most likely an issue with standard itself:
https://github.com/ricardofbarros/linter-js-standard/issues/185

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

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

What's wrong ?
Hello!
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.
https://ponyfoo.com/articles/understanding-javascript-async-await#using-async-await
Just for kicks, I checked out the v8.6.0 tag and tried another sample file with different syntax, and it worked! :)
~/code/standard v8.6.0*
🕦 ❯ cat test.js
```js
/* global foo */
async function yo () {
let x = await foo()
return x
}
module.exports = yo
```bash
~/code/standard v8.6.0*
🕦 ❯ node bin/cmd.js test.js
🕦 ❯ # no error returned!
I'm going to close this issue, but please feel free to continue the conversation.
I think the issue here is that the message is misleading / not as informative as it could be .
It would be better (and properly informative) if it said "The 'await' keyword can only be used inside functions marked 'async'."
I agree @brianmhunt, however the error originates from deep inside eslints parser.
Most helpful comment
I think the issue here is that the message is misleading / not as informative as it could be .
It would be better (and properly informative) if it said "The 'await' keyword can only be used inside functions marked 'async'."