mirror of
https://github.com/denoland/deno.git
synced 2025-09-29 05:34:49 +00:00
Use dprint for internal formatting (#6682)
This commit is contained in:
parent
9eca71caa1
commit
cde4dbb351
378 changed files with 3116 additions and 3121 deletions
|
@ -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<void> {
|
||||
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}`;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue