@@ -7,32 +7,32 @@ import { Paths } from "../../paths/paths";
77import * as cache from "gulp-cached" ;
88import { LoggerInstance } from "../../utils/logger" ;
99// import { TypescriptBuilder } from "../typescript/typescript-builder";
10- import { Configuration } from "../../configuration/configuration" ;
11- import * as ts from "typescript" ;
10+ // import { Configuration } from "../../configuration/configuration";
11+ // import * as ts from "typescript";
1212
13- export class TslintBuilder extends BuilderBase < ts . Program > {
14- protected build ( production : boolean , builder : ts . Program , done : ( ) => void ) {
13+ export class TslintBuilder extends BuilderBase < void > {
14+ protected build ( production : boolean , builder : void , done : ( ) => void ) {
1515 gulp . src ( [
1616 Paths . Builders . AllFiles . InSourceApp ( ".ts*" ) ,
1717 `!${ Paths . Builders . AllFiles . InSourceApp ( "d.ts" ) } `
1818 ] )
1919 . pipe ( cache ( "scripts.tslint" ) )
2020 . pipe ( gulpTsLint ( {
21- formatter : TsLintFormatter ,
22- program : builder
21+ formatter : TsLintFormatter
22+ // program: builder
2323 } ) )
2424 . on ( "end" , done ) ;
2525 }
2626
27- protected initBuilder ( production : boolean ) : ts . Program {
27+ protected initBuilder ( production : boolean ) : void {
2828 LoggerInstance . withType ( "TSLint" ) . info ( `Using TSLint@${ tslint . Linter . VERSION } ` ) ;
29- let configurationFile : string ;
30- if ( production ) {
31- configurationFile = Configuration . GulpConfig . TypeScriptConfig . Production ;
32- } else {
33- configurationFile = Configuration . GulpConfig . TypeScriptConfig . Development ;
34- }
35- return tslint . Linter . createProgram ( configurationFile ) ;
29+ // let configurationFile: string;
30+ // if (production) {
31+ // configurationFile = Configuration.GulpConfig.TypeScriptConfig.Production;
32+ // } else {
33+ // configurationFile = Configuration.GulpConfig.TypeScriptConfig.Development;
34+ // }
35+ // return tslint.Linter.createProgram(configurationFile);
3636 }
3737
3838}
0 commit comments