redoc/build/tasks/lint.js

11 lines
265 B
JavaScript
Raw Normal View History

2015-10-03 15:11:57 +03:00
var gulp = require('gulp');
var eslint = require('gulp-eslint');
var paths = require('../paths');
gulp.task('lint', function () {
2015-12-12 23:11:35 +03:00
return gulp.src([paths.source, paths.tests])
2015-10-03 15:11:57 +03:00
.pipe(eslint())
.pipe(eslint.format())
.pipe(eslint.failAfterError());
});