MCPcopy Index your code
hub / github.com/lingodotdev/lingo.dev / formatWithPrettier

Function formatWithPrettier

scripts/docs/src/generate-cli-docs.ts:491–500  ·  view source on GitHub ↗
(
  content: string,
  filePath: string,
)

Source from the content-addressed store, hash-verified

489}
490
491async function formatWithPrettier(
492 content: string,
493 filePath: string,
494): Promise<string> {
495 const config = await resolveConfig(filePath);
496 return prettierFormat(content, {
497 ...(config ?? {}),
498 filepath: filePath,
499 });
500}
501
502type CommandDoc = {
503 fileName: string;

Callers 1

mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected