mirror of
https://github.com/denoland/deno.git
synced 2025-10-03 15:44:36 +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
|
@ -4,7 +4,7 @@ import { writeFileSync, writeFile, WriteFileOptions } from "./write_file.ts";
|
|||
export function writeTextFileSync(
|
||||
path: string | URL,
|
||||
data: string,
|
||||
options: WriteFileOptions = {}
|
||||
options: WriteFileOptions = {},
|
||||
): void {
|
||||
const encoder = new TextEncoder();
|
||||
return writeFileSync(path, encoder.encode(data), options);
|
||||
|
@ -13,7 +13,7 @@ export function writeTextFileSync(
|
|||
export function writeTextFile(
|
||||
path: string | URL,
|
||||
data: string,
|
||||
options: WriteFileOptions = {}
|
||||
options: WriteFileOptions = {},
|
||||
): Promise<void> {
|
||||
const encoder = new TextEncoder();
|
||||
return writeFile(path, encoder.encode(data), options);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue