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. --- std/fmt/printf.ts | 4 ++-- std/fmt/printf_test.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 'std/fmt') diff --git a/std/fmt/printf.ts b/std/fmt/printf.ts index d3a87c51b..b12ee7a2c 100644 --- a/std/fmt/printf.ts +++ b/std/fmt/printf.ts @@ -278,7 +278,7 @@ class Printf { } handleLessThan(): string { - // eslint-disable-next-line @typescript-eslint/no-explicit-any + // deno-lint-ignore no-explicit-any const arg = this.args[this.argNum] as any; if ((arg || {}).constructor.name !== "Array") { throw new Error(`arg ${arg} is not an array. Todo better error handling`); @@ -315,7 +315,7 @@ class Printf { this.state = State.PASSTHROUGH; } - // eslint-disable-next-line @typescript-eslint/no-explicit-any + // deno-lint-ignore no-explicit-any _handleVerb(arg: any): string { switch (this.verb) { case "t": diff --git a/std/fmt/printf_test.ts b/std/fmt/printf_test.ts index e4399812b..3987d0b73 100644 --- a/std/fmt/printf_test.ts +++ b/std/fmt/printf_test.ts @@ -230,7 +230,7 @@ Deno.test("testZero", function (): void { }); // relevant test cases from fmt_test.go -// eslint-disable-next-line @typescript-eslint/no-explicit-any +// deno-lint-ignore no-explicit-any const tests: Array<[string, any, string]> = [ ["%d", 12345, "12345"], ["%v", 12345, "12345"], -- cgit v1.2.3