format_file.ts

Declarations
#

view source

format_file
#

format_file.ts view source

(content: string, options: Options, base_options?: Options | null | undefined): Promise<string>

Formats a file with Prettier.

content

type string

options

type Options

base_options

- defaults to the the cwd's package.json prettier value

type Options | null | undefined
default cached_base_options

returns

Promise<string>

Depends on
#

Imported by
#