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 --- std/node/_util/_util_callbackify_test.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'std/node/_util/_util_callbackify_test.ts') diff --git a/std/node/_util/_util_callbackify_test.ts b/std/node/_util/_util_callbackify_test.ts index 4a87eb355..26a8cd249 100644 --- a/std/node/_util/_util_callbackify_test.ts +++ b/std/node/_util/_util_callbackify_test.ts @@ -80,7 +80,7 @@ Deno.test( const testQueue = new TestQueue(); for (const value of values) { - // eslint-disable-next-line require-await + // deno-lint-ignore require-await const asyncFn = async (): Promise => { return value; }; @@ -136,7 +136,7 @@ Deno.test( const testQueue = new TestQueue(); for (const value of values) { - // eslint-disable-next-line require-await + // deno-lint-ignore require-await const asyncFn = async (): Promise => { return Promise.reject(value); }; @@ -245,7 +245,7 @@ Deno.test("callbackify passes arguments to the original", async () => { const testQueue = new TestQueue(); for (const value of values) { - // eslint-disable-next-line require-await + // deno-lint-ignore require-await const asyncFn = async (arg: typeof value): Promise => { assertStrictEquals(arg, value); return arg; @@ -314,7 +314,7 @@ Deno.test("callbackify preserves the `this` binding", async () => { }); const objectWithAsyncFunction = { - // eslint-disable-next-line require-await + // deno-lint-ignore require-await async fn(this: unknown, arg: typeof value): Promise { assertStrictEquals(this, objectWithAsyncFunction); return arg; @@ -360,7 +360,7 @@ Deno.test("callbackify throws with non-function inputs", () => { Deno.test( "callbackify returns a function that throws if the last argument is not a function", () => { - // eslint-disable-next-line require-await + // deno-lint-ignore require-await async function asyncFn(): Promise { return 42; } -- cgit v1.2.3