[typescript-estree]: await in non-async function parses without error #987
Labels
bug
Something isn't working
package: typescript-estree
Issues related to @typescript-eslint/typescript-estree
What code were you trying to parse?
AST Explorer link
What did you expect to happen?
Both
espree
andbabel-eslint
throw a parsing error when usingawait
inside a non-async
function. Shouldtypescript-estree
also throw an error here? It looks like an error is highlighted in the TypeScript Playground.What actually happened?
Parses without error.
Versions
@typescript-eslint/typescript-estree
2.3.0
TypeScript
3.6.3
node
10.16.3
npm
6.11.3
The text was updated successfully, but these errors were encountered: