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/examples/catj.ts | 5 ++--- std/examples/xeval.ts | 3 --- 2 files changed, 2 insertions(+), 6 deletions(-) (limited to 'std/examples') diff --git a/std/examples/catj.ts b/std/examples/catj.ts index 513ae5235..a66a25ece 100644 --- a/std/examples/catj.ts +++ b/std/examples/catj.ts @@ -6,13 +6,12 @@ // Install using `deno install` // $ deno install --allow-read https://deno.land/std/examples/catj.ts -/* eslint-disable @typescript-eslint/no-use-before-define */ import { parse } from "../flags/mod.ts"; import * as colors from "../fmt/colors.ts"; const decoder = new TextDecoder(); -// eslint-disable-next-line @typescript-eslint/no-explicit-any +// deno-lint-ignore no-explicit-any function isObject(arg: any): arg is Record { return !!arg && arg.constructor === Object; } @@ -72,7 +71,7 @@ function printArray(array: unknown[], path: string): void { } } -// eslint-disable-next-line @typescript-eslint/no-explicit-any +// deno-lint-ignore no-explicit-any function print(data: any[] | Record): void { if (Array.isArray(data)) { printArray(data, ""); diff --git a/std/examples/xeval.ts b/std/examples/xeval.ts index 07c571cc7..97b373ab7 100644 --- a/std/examples/xeval.ts +++ b/std/examples/xeval.ts @@ -2,12 +2,10 @@ import { parse } from "../flags/mod.ts"; import { readStringDelim } from "../io/bufio.ts"; -/* eslint-disable-next-line max-len */ // See https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/AsyncFunction. const AsyncFunction = Object.getPrototypeOf(async function (): Promise {}) .constructor; -/* eslint-disable max-len */ const HELP_MSG = `xeval Run a script for each new-line or otherwise delimited chunk of standard input. @@ -28,7 +26,6 @@ OPTIONS: -I, --replvar Set variable name to be used in eval, defaults to $ ARGS: `; -/* eslint-enable max-len */ export type XevalFunc = (v: string) => void; -- cgit v1.2.3