From d0970daacda0b6f6c2077c2f81948536b574bbe9 Mon Sep 17 00:00:00 2001 From: Ryan Dahl Date: Fri, 12 Jun 2020 09:19:29 -0400 Subject: make std deno-lint clean (#6240) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Bartek IwaƄczuk --- std/fs/write_json.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'std/fs/write_json.ts') diff --git a/std/fs/write_json.ts b/std/fs/write_json.ts index e382fa306..28eb80d44 100644 --- a/std/fs/write_json.ts +++ b/std/fs/write_json.ts @@ -1,5 +1,5 @@ // Copyright 2018-2020 the Deno authors. All rights reserved. MIT license. -/* eslint-disable @typescript-eslint/no-explicit-any */ +// eslint-disable-next-line @typescript-eslint/no-explicit-any type Replacer = (key: string, value: any) => any; export interface WriteJsonOptions { @@ -10,6 +10,7 @@ export interface WriteJsonOptions { /* Writes an object to a JSON file. */ export async function writeJson( filePath: string, + // eslint-disable-next-line @typescript-eslint/no-explicit-any object: any, options: WriteJsonOptions = {} ): Promise { @@ -32,6 +33,7 @@ export async function writeJson( /* Writes an object to a JSON file. */ export function writeJsonSync( filePath: string, + // eslint-disable-next-line @typescript-eslint/no-explicit-any object: any, options: WriteJsonOptions = {} ): void { -- cgit v1.2.3