gulp-standard
gulp-standard copied to clipboard
Example of how to correct the problems pointed out
I would like to know how my code would look below so that besides showing the errors, I also corrected them
gulp.task('standard', ['scripts'], function () {
return gulp.src(['./dist/app.js'])
.pipe(standard())
.pipe(standard.reporter('default', {
breakOnError: true,
quiet: true,
showRuleNames: true,
showFilePath: false
}))
})
Pass the fix option to gulp-standard:
gulp.task('standard', ['scripts'], function () {
return gulp.src(['./dist/app.js'])
.pipe(standard({ fix: true }))
.pipe(standard.reporter('default', {
breakOnError: true,
quiet: true,
showRuleNames: true,
showFilePath: false
}))
})