[Bug] await
on non-async function does not throw an error
#2997
Labels
package: parser
Issues related to @typescript-eslint/parser
working as intended
Issues that are closed as they are working as intended
Repro
Expected Result
Expected ESLint to throw an error, I am using
await
without declaring the function asasync
.Actual Result
ESLint falsely passes, when removing the
parser
property in.eslintrc
, it correctly gives me the error in the expected result.Additional Info
Debug output:
Versions
@typescript-eslint/parser
4.14.1
TypeScript
4.1.3
ESLint
7.19.0
node
14.15.4
The text was updated successfully, but these errors were encountered: