Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace resolveConfigFile

Callable

  • resolveConfigFile(filePath?: undefined | string): Promise<null | string>
  • resolveConfigFile can be used to find the path of the Prettier configuration file, that will be used when resolving the config (i.e. when calling resolveConfig).

    A promise is returned which will resolve to:

    • The path of the configuration file.
    • null, if no file was found.

    The promise will be rejected if there was an error parsing the configuration file.

    Parameters

    • Optional filePath: undefined | string

    Returns Promise<null | string>

Index

Functions

Functions

sync

  • sync(filePath?: undefined | string): null | string
  • Parameters

    • Optional filePath: undefined | string

    Returns null | string