(onlyStaged, fix, callback)
| 364 | ); |
| 365 | |
| 366 | const runPrettier = (onlyStaged, fix, callback) => { |
| 367 | const child = cp.fork( |
| 368 | './node_modules/@mixer/parallel-prettier/dist/index.js', |
| 369 | [fix ? '--write' : '--list-different', 'src/**/*.ts', '!src/**/*.d.ts', '*.md'], |
| 370 | { stdio: 'inherit' }, |
| 371 | ); |
| 372 | |
| 373 | child.on('exit', code => (code ? callback(`Prettier exited with code ${code}`) : callback())); |
| 374 | }; |
| 375 | |
| 376 | const runEslint = (fix, callback) => { |
| 377 | const child = cp.fork( |
no test coverage detected