fix tslint in hygiene

fixes #38207
This commit is contained in:
Joao Moreno
2017-11-13 11:32:38 +01:00
parent 08d0aa5949
commit 7a01db1b43
10 changed files with 58 additions and 89 deletions

View File

@@ -229,9 +229,9 @@ const hygiene = exports.hygiene = (some, options) => {
linter.lint(file.relative, contents, configuration.results);
const result = linter.getResult();
if (result.failureCount > 0) {
if (result.failures.length > 0) {
reportFailures(result.failures);
errorCount += result.failureCount;
errorCount += result.failures.length;
}
this.emit('data', file);
@@ -261,7 +261,7 @@ const hygiene = exports.hygiene = (some, options) => {
return es.merge(typescript, javascript)
.pipe(es.through(function (data) {
count++;
if (count % 10 === 0) {
if (process.env['TRAVIS'] && count % 10 === 0) {
process.stdout.write('.');
}
this.emit('data', data);