Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace resolveConfig

Callable

  • resolveConfig can be used to resolve configuration for a given source file, passing its path as the first argument. The config search will start at the file path and continue to search up the directory. (You can use process.cwd() to start searching from the current directory).

    A promise is returned which will resolve to:

    • An options object, providing a config file was found.
    • null, if no file was found.

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

    Parameters

    Returns Promise<null | Options>

Index

Functions

Functions

sync

  • Parameters

    Returns null | Options