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/dts/lib.deno.ns.d.ts | 6 +++--- cli/dts/lib.deno.shared_globals.d.ts | 2 -- cli/dts/lib.deno.window.d.ts | 4 ---- cli/dts/lib.deno.worker.d.ts | 4 ---- 4 files changed, 3 insertions(+), 13 deletions(-) (limited to 'cli/dts') diff --git a/cli/dts/lib.deno.ns.d.ts b/cli/dts/lib.deno.ns.d.ts index 896b5c800..d8bc8d0fd 100644 --- a/cli/dts/lib.deno.ns.d.ts +++ b/cli/dts/lib.deno.ns.d.ts @@ -40,7 +40,7 @@ declare interface Performance { declare interface PerformanceMarkOptions { /** Metadata to be included in the mark. */ - // eslint-disable-next-line @typescript-eslint/no-explicit-any + // deno-lint-ignore no-explicit-any detail?: any; /** Timestamp to be used as the mark time. */ @@ -49,7 +49,7 @@ declare interface PerformanceMarkOptions { declare interface PerformanceMeasureOptions { /** Metadata to be included in the measure. */ - // eslint-disable-next-line @typescript-eslint/no-explicit-any + // deno-lint-ignore no-explicit-any detail?: any; /** Timestamp to be used as the start time or string to be used as start @@ -1847,7 +1847,7 @@ declare namespace Deno { export function metrics(): Metrics; interface ResourceMap { - // eslint-disable-next-line @typescript-eslint/no-explicit-any + // deno-lint-ignore no-explicit-any [rid: number]: any; } diff --git a/cli/dts/lib.deno.shared_globals.d.ts b/cli/dts/lib.deno.shared_globals.d.ts index 03b85f50d..6eb9019ad 100644 --- a/cli/dts/lib.deno.shared_globals.d.ts +++ b/cli/dts/lib.deno.shared_globals.d.ts @@ -3,8 +3,6 @@ // Documentation partially adapted from [MDN](https://developer.mozilla.org/), // by Mozilla Contributors, which is licensed under CC-BY-SA 2.5. -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any, no-var */ - /// /// /// diff --git a/cli/dts/lib.deno.window.d.ts b/cli/dts/lib.deno.window.d.ts index 541eee370..996f73b86 100644 --- a/cli/dts/lib.deno.window.d.ts +++ b/cli/dts/lib.deno.window.d.ts @@ -1,7 +1,5 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -/* eslint-disable @typescript-eslint/no-explicit-any */ - /// /// /// @@ -51,5 +49,3 @@ declare function confirm(message?: string): boolean; * @param defaultValue */ declare function prompt(message?: string, defaultValue?: string): string | null; - -/* eslint-enable @typescript-eslint/no-explicit-any */ diff --git a/cli/dts/lib.deno.worker.d.ts b/cli/dts/lib.deno.worker.d.ts index a10b1a276..1d570680f 100644 --- a/cli/dts/lib.deno.worker.d.ts +++ b/cli/dts/lib.deno.worker.d.ts @@ -1,7 +1,5 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -/* eslint-disable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any */ - /// /// /// @@ -60,5 +58,3 @@ declare var onerror: declare var close: () => void; declare var name: string; declare var postMessage: (message: any) => void; - -/* eslint-enable @typescript-eslint/no-unused-vars, @typescript-eslint/no-explicit-any */ -- cgit v1.2.3