mirror of
https://github.com/Redocly/redoc.git
synced 2025-01-31 01:54:08 +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',
|
outputName: 'redoc.full.js',
|
||||||
output: 'dist/',
|
output: 'dist/',
|
||||||
tmp: '.tmp/',
|
tmp: '.tmp/',
|
||||||
demo: 'demo/**/*'
|
demo: 'demo/**/*',
|
||||||
|
tests: '{lib,tests}/**/*.spec.js'
|
||||||
};
|
};
|
||||||
|
|
|
@ -3,7 +3,7 @@ var eslint = require('gulp-eslint');
|
||||||
var paths = require('../paths');
|
var paths = require('../paths');
|
||||||
|
|
||||||
gulp.task('lint', function () {
|
gulp.task('lint', function () {
|
||||||
return gulp.src(paths.source)
|
return gulp.src([paths.source, paths.tests])
|
||||||
.pipe(eslint())
|
.pipe(eslint())
|
||||||
.pipe(eslint.format())
|
.pipe(eslint.format())
|
||||||
.pipe(eslint.failAfterError());
|
.pipe(eslint.failAfterError());
|
||||||
|
|
Loading…
Reference in New Issue
Block a user