( filePath: string, fromLine: number, toLine: number )
| 121 | } |
| 122 | |
| 123 | export function reorderComponent( |
| 124 | filePath: string, |
| 125 | fromLine: number, |
| 126 | toLine: number |
| 127 | ): string { |
| 128 | const source = fs.readFileSync(filePath, "utf-8"); |
| 129 | const { j, root, quoteStyle } = parseSource(source, filePath); |
| 130 | |
| 131 | mutateReorder(j, root, fromLine, toLine); |
| 132 | return root.toSource({ quote: quoteStyle }); |
| 133 | } |
| 134 | |
| 135 | export function getSiblings( |
| 136 | filePath: string, |
no test coverage detected