Skip to content

hasPrettierConfig

Says whether the project configures Prettier itself.

Import:

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

Signature:

function hasPrettierConfig(): Promise<boolean>

Returns: Promise<boolean> — Whether a Prettier configuration file, or a prettier key in package.json, exists at the project root.