From 798904b0f2ed0c7284b67bba2f125f406b5850de Mon Sep 17 00:00:00 2001 From: Samrith Shankar Date: Fri, 20 Mar 2020 14:38:34 +0100 Subject: Add require-await lint rule (#4401) --- cli/tests/async_error.ts | 1 + 1 file changed, 1 insertion(+) (limited to 'cli/tests/async_error.ts') diff --git a/cli/tests/async_error.ts b/cli/tests/async_error.ts index 81c983a50..b37369bac 100644 --- a/cli/tests/async_error.ts +++ b/cli/tests/async_error.ts @@ -1,4 +1,5 @@ console.log("hello"); +// eslint-disable-next-line require-await const foo = async (): Promise => { console.log("before error"); throw Error("error"); -- cgit v1.2.3