(onlyStaged, fix, callback)
| 448 | ); |
| 449 | |
| 450 | const runFormatting = (onlyStaged, fix, callback) => { |
| 451 | const child = cp.fork('./node_modules/dprint/bin.js', [fix ? 'fmt' : 'check'], { |
| 452 | stdio: 'inherit', |
| 453 | }); |
| 454 | |
| 455 | child.on('exit', code => (code ? callback(`Formatter exited with code ${code}`) : callback())); |
| 456 | }; |
| 457 | |
| 458 | const runEslint = (fix, callback) => { |
| 459 | const child = cp.fork( |