import { resolveConfigFile } from "https://deno.land/x/deno@v0.28.0/std/prettier/vendor/index.d.ts";
import { resolveConfigFile } from "https://deno.land/x/deno@v0.28.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.