MCPcopy Create free account
hub / github.com/Snapchat/Valdi / getPrettierConfigPath

Function getPrettierConfigPath

npm_modules/cli/src/utils/lintUtils.ts:46–52  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

44}
45
46export async function getPrettierConfigPath(): Promise<string | null> {
47 // Starts searching at process.cwd() by default
48 // Note that VALIDing in process.cwd() as a parameter will NOT work
49 const prettierConfigPath = await prettier.resolveConfigFile();
50
51 return prettierConfigPath;
52}
53
54export function createPrettierConfig(): string {
55 const prettierTemplateFile = TemplateFile.init(TEMPLATE_BASE_PATHS.PRETTIER_CONFIG);

Callers 1

maybeSetupPrettierFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected