Skip to content

FormatOptions

Parameters for the format function.

Import:

import type { FormatOptions } from '@mnaoumov/typescript-dev-toolkit/formatters/prettier';

Signature:

export interface FormatOptions

Properties

PropertyTypeDescription
defaultConfigFilePath?string | undefinedThe Prettier configuration used when the project has none of its own. Omitted, the shared one this package ships (assets/prettier.json) is used.
paths?string[] | undefinedOptional file paths to format. If omitted, formats the entire project.
rewrite?boolean | undefinedWhether to rewrite the source code.

Links to this page: