gulp-diff
Version:
Show diffs for files in the stream against those in a target directory
20 lines (17 loc) • 418 B
JavaScript
;
var eslint = require('gulp-eslint');
module.exports = function(gulp, conf) {
gulp.task('eslint', function() {
return gulp.src([
'!node_modules/**/*.js',
'**/*.js'
])
.pipe(eslint())
.pipe(eslint.format())
.pipe(eslint.failOnError())
.on('error', function() {
// record that there have been errors
gulp.fail = true;
});
});
};