( content: string, filePath: string, )
| 489 | } |
| 490 | |
| 491 | async 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 | |
| 502 | type CommandDoc = { |
| 503 | fileName: string; |