()
| 44 | } |
| 45 | |
| 46 | export 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 | |
| 54 | export function createPrettierConfig(): string { |
| 55 | const prettierTemplateFile = TemplateFile.init(TEMPLATE_BASE_PATHS.PRETTIER_CONFIG); |
no outgoing calls
no test coverage detected