redoc/build/tasks/lint.js

11 lines
250 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 () {
return gulp.src(paths.source)
.pipe(eslint())
.pipe(eslint.format())
.pipe(eslint.failAfterError());
});