(code: string)
| 7 | * @returns A promise that resolves to the formatted code string. |
| 8 | */ |
| 9 | export async function formatCode(code: string) { |
| 10 | return await prettier.format(code, { |
| 11 | parser: 'typescript', |
| 12 | singleQuote: true, |
| 13 | trailingComma: 'none', |
| 14 | arrowParens: 'avoid', |
| 15 | printWidth: 80, |
| 16 | useTabs: true, |
| 17 | semi: true, |
| 18 | tabWidth: 4 |
| 19 | }); |
| 20 | } |
no outgoing calls
no test coverage detected