MCPcopy Create free account
hub / github.com/Snapchat/Valdi / runPrettier

Function runPrettier

valdi/vscode_debugger/gulpfile.js:366–374  ·  view source on GitHub ↗
(onlyStaged, fix, callback)

Source from the content-addressed store, hash-verified

364);
365
366const 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
376const runEslint = (fix, callback) => {
377 const child = cp.fork(

Callers 1

gulpfile.jsFile · 0.85

Calls 2

callbackFunction · 0.85
onMethod · 0.65

Tested by

no test coverage detected