chore(tslint): update tslint to 4.x (#13603)

This commit is contained in:
Victor Berchet
2016-12-27 14:55:58 -08:00
committed by Hans
parent e5c4e5801f
commit eed83443b8
50 changed files with 2599 additions and 5467 deletions

View File

@ -80,7 +80,7 @@ interface DecoratorInvocation {
}
}
return ts.createSourceFile(fileName, newContent, languageVersion, true);
};
}
}
export class TsickleCompilerHost extends DelegatingHost {
@ -104,7 +104,7 @@ export class TsickleCompilerHost extends DelegatingHost {
tsickle.annotate(this.oldProgram, sourceFile, {untyped: true});
this.diagnostics = diagnostics;
return ts.createSourceFile(fileName, output, languageVersion, true);
};
}
}
const IGNORED_FILES = /\.ngfactory\.js$|\.ngstyle\.js$/;
@ -156,5 +156,5 @@ export class MetadataWriterHost extends DelegatingHost {
throw new Error('Bundled emit with --out is not supported');
}
this.writeMetadata(fileName, sourceFiles[0]);
};
}
}

View File

@ -160,4 +160,4 @@ export class Tsc implements CompilerInterface {
return emitResult.emitSkipped ? 1 : 0;
}
}
export var tsc: CompilerInterface = new Tsc();
export const tsc: CompilerInterface = new Tsc();