diff options
author | Yusuke Tanaka <yusuktan@maguro.dev> | 2020-11-15 04:27:37 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-14 20:27:37 +0100 |
commit | 90290030469cc7f278492ece67dd783c4d380b43 (patch) | |
tree | abf33a2bd20a8f734563f294aff3c4a440d9d49e /cli/tests | |
parent | 3d65e57d7c48f5dd1307f83771fe5574d914cea3 (diff) |
build: update dlint to v0.2.10 (#8284)
Update prebuilt "dlint" binary to v0.2.10 and fix diagnostics
for "require-await" rule.
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Diffstat (limited to 'cli/tests')
-rw-r--r-- | cli/tests/async_error.ts | 2 | ||||
-rw-r--r-- | cli/tests/subdir/worker_types.ts | 2 | ||||
-rw-r--r-- | cli/tests/top_level_for_await.ts | 1 |
3 files changed, 2 insertions, 3 deletions
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<never> => { 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<number> { let i = 0; while (i < 3) { |