Use dprint for internal formatting (#6682)

This commit is contained in:
David Sherret 2020-07-14 15:24:17 -04:00 committed by GitHub
parent 9eca71caa1
commit cde4dbb351
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
378 changed files with 3116 additions and 3121 deletions

View file

@ -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}`;