mirror of
https://github.com/denoland/deno.git
synced 2025-09-27 20:59:10 +00:00
make std deno-lint clean (#6240)
Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
This commit is contained in:
parent
ca1c2ee822
commit
d0970daacd
17 changed files with 70 additions and 30 deletions
|
@ -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<void> {
|
||||
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue