(code: string, parser = 'babel')
| 133 | * @returns the formatted code |
| 134 | */ |
| 135 | export function formatCode(code: string, parser = 'babel') { |
| 136 | if (prettier && prettierPlugins) { |
| 137 | return prettier.format(code, { parser, plugins: prettierPlugins }); |
| 138 | } |
| 139 | return code; |
| 140 | } |
| 141 | |
| 142 | /** |
| 143 | * 是否匹配路由 |
no outgoing calls
no test coverage detected