Skip to main content
Using Deno in production at your company? Earn free Deno merch.
Give us feedback
Module

x/deno/std/prettier/vendor/index.d.ts>resolveConfigFile

A modern runtime for JavaScript and TypeScript.
Go to Latest
namespace resolveConfigFile
import { resolveConfigFile } from "https://deno.land/x/deno@v0.23.0/std/prettier/vendor/index.d.ts";
function resolveConfigFile
import { resolveConfigFile } from "https://deno.land/x/deno@v0.23.0/std/prettier/vendor/index.d.ts";

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: string

Returns

Promise<null | string>