Add spec files to lint

This commit is contained in:
Roman Hotsiy 2015-12-12 22:11:35 +02:00
parent e39b26a2af
commit cd900926bd
2 changed files with 3 additions and 2 deletions

View File

@ -6,5 +6,6 @@ module.exports = {
outputName: 'redoc.full.js',
output: 'dist/',
tmp: '.tmp/',
demo: 'demo/**/*'
demo: 'demo/**/*',
tests: '{lib,tests}/**/*.spec.js'
};

View File

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