@@ -321,16 +321,6 @@ function hygiene(some) {
321321 } ) ;
322322 } ) ;
323323
324- const tslintConfiguration = tslint . Configuration . findConfiguration ( 'tslint.json' , '.' ) ;
325- const tslintOptions = { fix : false , formatter : 'json' } ;
326- const tsLinter = new tslint . Linter ( tslintOptions ) ;
327-
328- const tsl = es . through ( function ( file ) {
329- const contents = file . contents . toString ( 'utf8' ) ;
330- tsLinter . lint ( file . relative , contents , tslintConfiguration . results ) ;
331- this . emit ( 'data' , file ) ;
332- } ) ;
333-
334324 let input ;
335325
336326 if ( Array . isArray ( some ) || typeof some === 'string' || ! some ) {
@@ -356,14 +346,10 @@ function hygiene(some) {
356346 . pipe ( filter ( copyrightFilter ) )
357347 . pipe ( copyrights ) ;
358348
359- let typescript = result
349+ const typescript = result
360350 . pipe ( filter ( tslintHygieneFilter ) )
361351 . pipe ( formatting ) ;
362352
363- if ( ! process . argv . some ( arg => arg === '--skip-tslint' ) ) {
364- typescript = typescript . pipe ( tsl ) ;
365- }
366-
367353 const javascript = result
368354 . pipe ( filter ( eslintFilter . concat ( tslintHygieneFilter ) ) )
369355 . pipe ( gulpeslint ( {
@@ -386,20 +372,6 @@ function hygiene(some) {
386372 this . emit ( 'data' , data ) ;
387373 } , function ( ) {
388374 process . stdout . write ( '\n' ) ;
389-
390- const tslintResult = tsLinter . getResult ( ) ;
391- if ( tslintResult . failures . length > 0 ) {
392- for ( const failure of tslintResult . failures ) {
393- const name = failure . getFileName ( ) ;
394- const position = failure . getStartPosition ( ) ;
395- const line = position . getLineAndCharacter ( ) . line ;
396- const character = position . getLineAndCharacter ( ) . character ;
397-
398- console . error ( `${ name } :${ line + 1 } :${ character + 1 } :${ failure . getFailure ( ) } ` ) ;
399- }
400- errorCount += tslintResult . failures . length ;
401- }
402-
403375 if ( errorCount > 0 ) {
404376 this . emit ( 'error' , 'Hygiene failed with ' + errorCount + ' errors. Check \'build/gulpfile.hygiene.js\'.' ) ;
405377 } else {
0 commit comments