diff options
Diffstat (limited to 'std/node/_fs')
-rw-r--r-- | std/node/_fs/_fs_common.ts | 2 | ||||
-rw-r--r-- | std/node/_fs/_fs_dir.ts | 4 | ||||
-rw-r--r-- | std/node/_fs/_fs_dir_test.ts | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/std/node/_fs/_fs_common.ts b/std/node/_fs/_fs_common.ts index fa1a52429..0b1ffe0bb 100644 --- a/std/node/_fs/_fs_common.ts +++ b/std/node/_fs/_fs_common.ts @@ -49,7 +49,7 @@ export function getEncoding( optOrCallback?: | FileOptions | WriteFileOptions - // eslint-disable-next-line @typescript-eslint/no-explicit-any + // deno-lint-ignore no-explicit-any | ((...args: any[]) => any) | Encodings | null, diff --git a/std/node/_fs/_fs_dir.ts b/std/node/_fs/_fs_dir.ts index 1fd7d60dd..18d104981 100644 --- a/std/node/_fs/_fs_dir.ts +++ b/std/node/_fs/_fs_dir.ts @@ -18,7 +18,7 @@ export default class Dir { return this.dirPath; } - // eslint-disable-next-line @typescript-eslint/no-explicit-any + // deno-lint-ignore no-explicit-any read(callback?: (...args: any[]) => void): Promise<Dirent | null> { return new Promise((resolve, reject) => { if (!this.asyncIterator) { @@ -57,7 +57,7 @@ export default class Dir { * directories, and therefore does not need to close directories when * finished reading. */ - // eslint-disable-next-line @typescript-eslint/no-explicit-any + // deno-lint-ignore no-explicit-any close(callback?: (...args: any[]) => void): Promise<void> { return new Promise((resolve, reject) => { try { diff --git a/std/node/_fs/_fs_dir_test.ts b/std/node/_fs/_fs_dir_test.ts index 522bd9bcd..0dea64c81 100644 --- a/std/node/_fs/_fs_dir_test.ts +++ b/std/node/_fs/_fs_dir_test.ts @@ -7,7 +7,7 @@ Deno.test({ name: "Closing current directory with callback is successful", fn() { let calledBack = false; - // eslint-disable-next-line @typescript-eslint/no-explicit-any + // deno-lint-ignore no-explicit-any new Dir(".").close((valOrErr: any) => { assert(!valOrErr); calledBack = true; @@ -51,7 +51,7 @@ Deno.test({ let calledBack = false; const fileFromCallback: Dirent | null = await new Dir( testDir, - // eslint-disable-next-line @typescript-eslint/no-explicit-any + // deno-lint-ignore no-explicit-any ).read((err: any, res: Dirent) => { assert(res === null); assert(err === null); @@ -81,7 +81,7 @@ Deno.test({ const dir: Dir = new Dir(testDir); const firstRead: Dirent | null = await dir.read(); const secondRead: Dirent | null = await dir.read( - // eslint-disable-next-line @typescript-eslint/no-explicit-any + // deno-lint-ignore no-explicit-any (err: any, secondResult: Dirent) => { assert( secondResult.name === "bar.txt" || |