(str: string, options: prettier.Options = {})
| 40 | export let pluginPath = path.resolve(__dirname, '../dist/index.mjs') |
| 41 | |
| 42 | export async function format(str: string, options: prettier.Options = {}) { |
| 43 | let result = await prettier.format(str, { |
| 44 | semi: false, |
| 45 | singleQuote: true, |
| 46 | printWidth: 9999, |
| 47 | parser: 'html', |
| 48 | ...options, |
| 49 | plugins: [ |
| 50 | // |
| 51 | ...(options.plugins ?? []), |
| 52 | // plugin, |
| 53 | pluginPath, |
| 54 | ], |
| 55 | }) |
| 56 | |
| 57 | return result.trim() |
| 58 | } |
no outgoing calls
no test coverage detected
searching dependent graphs…