meshviewer/gulp/tasks/eslint.js

9 lines
301 B
JavaScript
Raw Normal View History

2017-03-22 22:13:37 +00:00
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()));
};
};