Answer the question
In order to leave comments, you need to log in
How to setup gulp-eslint + gulp-notify?
Hello, tell me how to set up the gulp-notify gulp-eslint bundle, js task looks like this now:
gulp.task('js', function() {
gulp.src(path.js.source)
.pipe(include())
.pipe(eslint())
.pipe(eslint.format())
.pipe(eslint.failAfterError())
.on("error", notify.onError({
title: "Gulp: ESLint",
message: "Error: <%= error.message %>"
}))
.pipe(gulp.dest(path.js.destination));
});
"Error: Failed with 1 error"
[14:43:07]
.../Projects/default-postcss/src/static/scripts/scripts.js
2:7 error Unexpected dangling '_' in '_x' no-underscore-dangle
✖ 1 problem (1 error, 0 warnings)
[14:43:07] gulp-notify: [Gulp: ESLint] Error: Failed with 1 error
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question