From cde4dbb35132848ffece59ef9cfaccff32347124 Mon Sep 17 00:00:00 2001 From: David Sherret Date: Tue, 14 Jul 2020 15:24:17 -0400 Subject: Use dprint for internal formatting (#6682) --- std/fs/write_json.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'std/fs/write_json.ts') diff --git a/std/fs/write_json.ts b/std/fs/write_json.ts index 28eb80d44..015957bba 100644 --- a/std/fs/write_json.ts +++ b/std/fs/write_json.ts @@ -12,7 +12,7 @@ export async function writeJson( filePath: string, // eslint-disable-next-line @typescript-eslint/no-explicit-any object: any, - options: WriteJsonOptions = {} + options: WriteJsonOptions = {}, ): Promise { let contentRaw = ""; @@ -20,7 +20,7 @@ export async function writeJson( contentRaw = JSON.stringify( object, options.replacer as string[], - options.spaces + options.spaces, ); } catch (err) { err.message = `${filePath}: ${err.message}`; @@ -35,7 +35,7 @@ export function writeJsonSync( filePath: string, // eslint-disable-next-line @typescript-eslint/no-explicit-any object: any, - options: WriteJsonOptions = {} + options: WriteJsonOptions = {}, ): void { let contentRaw = ""; @@ -43,7 +43,7 @@ export function writeJsonSync( contentRaw = JSON.stringify( object, options.replacer as string[], - options.spaces + options.spaces, ); } catch (err) { err.message = `${filePath}: ${err.message}`; -- cgit v1.2.3