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/path/_constants.ts | 2 +- std/path/glob.ts | 1 - std/path/posix.ts | 1 - std/path/win32.ts | 1 - 4 files changed, 1 insertion(+), 4 deletions(-) (limited to 'std/path') diff --git a/std/path/_constants.ts b/std/path/_constants.ts index 920979432..d26334b55 100644 --- a/std/path/_constants.ts +++ b/std/path/_constants.ts @@ -48,7 +48,7 @@ export const CHAR_0 = 48; /* 0 */ export const CHAR_9 = 57; /* 9 */ let NATIVE_OS: typeof Deno.build.os = "linux"; -// eslint-disable-next-line @typescript-eslint/no-explicit-any +// deno-lint-ignore no-explicit-any const navigator = (globalThis as any).navigator; if (globalThis.Deno != null) { NATIVE_OS = Deno.build.os; diff --git a/std/path/glob.ts b/std/path/glob.ts index d8eb1d95d..fde2fe8e2 100644 --- a/std/path/glob.ts +++ b/std/path/glob.ts @@ -316,7 +316,6 @@ export function globToRegExp( /** Test whether the given string is a glob */ export function isGlob(str: string): boolean { const chars: Record = { "{": "}", "(": ")", "[": "]" }; - /* eslint-disable-next-line max-len */ const regex = /\\(.)|(^!|\*|[\].+)]\?|\[[^\\\]]+\]|\{[^\\}]+\}|\(\?[:!=][^\\)]+\)|\([^|]+\|[^\\)]+\))/; diff --git a/std/path/posix.ts b/std/path/posix.ts index d2845f3da..7682ec788 100644 --- a/std/path/posix.ts +++ b/std/path/posix.ts @@ -334,7 +334,6 @@ export function extname(path: string): string { } export function format(pathObject: FormatInputPathObject): string { - /* eslint-disable max-len */ if (pathObject === null || typeof pathObject !== "object") { throw new TypeError( `The "pathObject" argument must be of type Object. Received type ${typeof pathObject}`, diff --git a/std/path/win32.ts b/std/path/win32.ts index 1684a2c45..6daff65c8 100644 --- a/std/path/win32.ts +++ b/std/path/win32.ts @@ -747,7 +747,6 @@ export function extname(path: string): string { } export function format(pathObject: FormatInputPathObject): string { - /* eslint-disable max-len */ if (pathObject === null || typeof pathObject !== "object") { throw new TypeError( `The "pathObject" argument must be of type Object. Received type ${typeof pathObject}`, -- cgit v1.2.3