9 lines
301 B
JavaScript
9 lines
301 B
JavaScript
module.exports = function (gulp, plugins, config, env) {
|
|
return function eslint() {
|
|
return gulp.src(['app.js', 'gulpfile.js', 'lib/**/*.js', 'gulp/**/*.js'])
|
|
.pipe(plugins.eslint())
|
|
.pipe(plugins.eslint.format())
|
|
.pipe(env.production(plugins.eslint.failAfterError()));
|
|
};
|
|
};
|