This repository has been archived on 2024-05-11. You can view files and clone it, but cannot push or open issues or pull requests.
meshviewer/gulp/tasks/eslint.js

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()));
};
};