From cd900926bdc1fc2664d6b97aa322461deed2cf86 Mon Sep 17 00:00:00 2001 From: Roman Hotsiy Date: Sat, 12 Dec 2015 22:11:35 +0200 Subject: [PATCH] Add spec files to lint --- build/paths.js | 3 ++- build/tasks/lint.js | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/build/paths.js b/build/paths.js index aabc3dab..b78fe559 100644 --- a/build/paths.js +++ b/build/paths.js @@ -6,5 +6,6 @@ module.exports = { outputName: 'redoc.full.js', output: 'dist/', tmp: '.tmp/', - demo: 'demo/**/*' + demo: 'demo/**/*', + tests: '{lib,tests}/**/*.spec.js' }; diff --git a/build/tasks/lint.js b/build/tasks/lint.js index e073f8fa..63559646 100644 --- a/build/tasks/lint.js +++ b/build/tasks/lint.js @@ -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());