Skip to content

FormatOptions

Parameters for the format function.

Import:

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

Signature:

export interface FormatOptions

Properties

PropertyTypeDescription
defaultConfigFilePath?string | undefinedThe dprint.json used when the project has none of its own. Without it, a project with no dprint.json fails.
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: