From 8e914be7420715620cad74fbb020c5e87ac875a2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Tue, 3 Nov 2020 16:19:29 +0100 Subject: build: migrate to dlint (#8176) This commit migrates repository from using "eslint" to "dlint" for linting JavaScript code. --- cli/tests/unit/error_stack_test.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'cli/tests/unit/error_stack_test.ts') diff --git a/cli/tests/unit/error_stack_test.ts b/cli/tests/unit/error_stack_test.ts index d795a2951..a5fe13796 100644 --- a/cli/tests/unit/error_stack_test.ts +++ b/cli/tests/unit/error_stack_test.ts @@ -7,7 +7,7 @@ const { setPrepareStackTrace } = Deno[Deno.internal]; interface CallSite { getThis(): unknown; getTypeName(): string | null; - // eslint-disable-next-line @typescript-eslint/ban-types + // deno-lint-ignore ban-types getFunction(): Function | null; getFunctionName(): string | null; getMethodName(): string | null; @@ -36,7 +36,7 @@ function getMockCallSite( getTypeName(): string { return ""; }, - // eslint-disable-next-line @typescript-eslint/ban-types + // deno-lint-ignore ban-types getFunction(): Function { return (): void => {}; }, @@ -125,7 +125,7 @@ unitTest(function errorStackMessageLine(): void { // FIXME(bartlomieju): no longer works after migrating // to JavaScript runtime code unitTest({ ignore: true }, function prepareStackTrace(): void { - // eslint-disable-next-line @typescript-eslint/no-explicit-any + // deno-lint-ignore no-explicit-any const MockError = {} as any; setPrepareStackTrace(MockError); assert(typeof MockError.prepareStackTrace === "function"); -- cgit v1.2.3