diff options
author | Bartek IwaĆczuk <biwanczuk@gmail.com> | 2020-11-03 16:19:29 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-11-03 16:19:29 +0100 |
commit | 8e914be7420715620cad74fbb020c5e87ac875a2 (patch) | |
tree | 2fefc0111f85533de2bd24e54f70c6c1241e3d3b /std/examples/catj.ts | |
parent | e736d0f60f6cdf38e2d317ee08a7125de9e57d69 (diff) |
build: migrate to dlint (#8176)
This commit migrates repository from using "eslint"
to "dlint" for linting JavaScript code.
Diffstat (limited to 'std/examples/catj.ts')
-rw-r--r-- | std/examples/catj.ts | 5 |
1 files changed, 2 insertions, 3 deletions
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<string, unknown> { 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<string, unknown>): void { if (Array.isArray(data)) { printArray(data, ""); |