Skip to content

getPrettierConfig

Reads the shared Prettier configuration this package ships, for a project’s own prettier.config.mjs to export or build on.

Import:

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

Signature:

function getPrettierConfig(): Readonly<Record<string, unknown>>

Returns: Readonly<Record<string, unknown>> — The shared configuration.