mirror of
https://github.com/Redocly/redoc.git
synced 2025-01-30 17:44:07 +03:00
Add spec files to lint
This commit is contained in:
parent
e39b26a2af
commit
cd900926bd
|
@ -6,5 +6,6 @@ module.exports = {
|
|||
outputName: 'redoc.full.js',
|
||||
output: 'dist/',
|
||||
tmp: '.tmp/',
|
||||
demo: 'demo/**/*'
|
||||
demo: 'demo/**/*',
|
||||
tests: '{lib,tests}/**/*.spec.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());
|
||||
|
|
Loading…
Reference in New Issue
Block a user