Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
}
resolve();
};
if (argv.fix) {
return gulp
.src(filesToCheck)
.pipe(prettier())
.on('data', onData)
.on('error', onError)
.pipe(gulp.dest(file => file.base))
.on('finish', onFinish);
} else {
return gulp
.src(filesToCheck)
.pipe(prettier.check())
.on('data', onData)
.on('error', onError)
.on('finish', onFinish);
}
});
}