redoc/build/tasks/lint.js
2015-12-12 22:11:35 +02:00

11 lines
265 B
JavaScript

var gulp = require('gulp');
var eslint = require('gulp-eslint');
var paths = require('../paths');
gulp.task('lint', function () {
return gulp.src([paths.source, paths.tests])
.pipe(eslint())
.pipe(eslint.format())
.pipe(eslint.failAfterError());
});