fix eslint tslint tasks

This commit is contained in:
Joao Moreno
2017-10-31 16:11:10 +01:00
parent 7d41bf8e8e
commit 6798b9be0b

View File

@@ -145,7 +145,7 @@ function reportFailures(failures) {
}
gulp.task('eslint', () => {
return gulp.src(all, { base: '.' })
return vfs.src(all, { base: '.', follow: true, allowEmpty: true })
.pipe(filter(eslintFilter))
.pipe(gulpeslint('src/.eslintrc'))
.pipe(gulpeslint.formatEach('compact'))
@@ -155,7 +155,7 @@ gulp.task('eslint', () => {
gulp.task('tslint', () => {
const options = { summarizeFailureOutput: true };
return gulp.src(all, { base: '.' })
return vfs.src(all, { base: '.', follow: true, allowEmpty: true })
.pipe(filter(tslintFilter))
.pipe(gulptslint({ rulesDirectory: 'build/lib/tslint' }))
.pipe(gulptslint.report(reportFailures, options));