(filePath: string)
| 1 | import { execSync } from "child_process"; |
| 2 | |
| 3 | export function applyAutocorrect(filePath: string): boolean { |
| 4 | try { |
| 5 | execSync(`npx autocorrect-node --fix "${filePath}"`, { stdio: "inherit" }); |
| 6 | return true; |
| 7 | } catch { |
| 8 | return false; |
| 9 | } |
| 10 | } |