From 90290030469cc7f278492ece67dd783c4d380b43 Mon Sep 17 00:00:00 2001 From: Yusuke Tanaka Date: Sun, 15 Nov 2020 04:27:37 +0900 Subject: build: update dlint to v0.2.10 (#8284) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Update prebuilt "dlint" binary to v0.2.10 and fix diagnostics for "require-await" rule. Co-authored-by: Bartek IwaƄczuk --- cli/tests/async_error.ts | 2 +- cli/tests/subdir/worker_types.ts | 2 +- cli/tests/top_level_for_await.ts | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) (limited to 'cli/tests') diff --git a/cli/tests/async_error.ts b/cli/tests/async_error.ts index b37369bac..b55c73aeb 100644 --- a/cli/tests/async_error.ts +++ b/cli/tests/async_error.ts @@ -1,5 +1,5 @@ console.log("hello"); -// eslint-disable-next-line require-await +// deno-lint-ignore require-await const foo = async (): Promise => { console.log("before error"); throw Error("error"); diff --git a/cli/tests/subdir/worker_types.ts b/cli/tests/subdir/worker_types.ts index 7a651e35a..b67a3b782 100644 --- a/cli/tests/subdir/worker_types.ts +++ b/cli/tests/subdir/worker_types.ts @@ -1,4 +1,4 @@ -// eslint-disable-next-line require-await +// deno-lint-ignore require-await self.onmessage = async (_msg: MessageEvent) => { self.postMessage("hello"); }; diff --git a/cli/tests/top_level_for_await.ts b/cli/tests/top_level_for_await.ts index 92d8af30a..9179322d7 100644 --- a/cli/tests/top_level_for_await.ts +++ b/cli/tests/top_level_for_await.ts @@ -1,4 +1,3 @@ -// eslint-disable-next-line require-await async function* asyncGenerator(): AsyncIterableIterator { let i = 0; while (i < 3) { -- cgit v1.2.3