UNPKG

generator-universal-web-template

Version:

An universal web proejct template - let you quickly set up a project using Handlebars, sass and ReactJS for front-end templating. It can be adopted with most modern CMS.

25 lines (18 loc) 475 B
/* jshint node: true */ /* test:lint Task Validate script code */ 'use strict'; var eslint = require('gulp-eslint'), plumber = require('gulp-plumber'); module.exports = function() { return this.gulp.src([ this.opts.path.join(this.opts.config.script.custom, '/**/*.js'), this.opts.path.join(this.opts.config.script.react, '/**/*.js') ]) .pipe(plumber()) .pipe(eslint()) .pipe(eslint.format()) .pipe(eslint.failAfterError()); };