refactor(lint): Don't allow console.log
Enable tslint check for `console.log` as a follow-up to https://github.com/angular/angular/issues/13018
This commit is contained in:
@ -85,6 +85,7 @@ export class BrowserDomAdapter extends GenericBrowserDomAdapter {
|
||||
|
||||
log(error: string): void {
|
||||
if (window.console) {
|
||||
// tslint:disable-next-line:no-console
|
||||
window.console.log && window.console.log(error);
|
||||
}
|
||||
}
|
||||
|
@ -75,7 +75,9 @@ export class AngularProfiler {
|
||||
(<any>window.console.profileEnd)(profileName);
|
||||
}
|
||||
const msPerTick = (end - start) / numTicks;
|
||||
// tslint:disable-next-line:no-console
|
||||
window.console.log(`ran ${numTicks} change detection cycles`);
|
||||
// tslint:disable-next-line:no-console
|
||||
window.console.log(`${msPerTick.toFixed(2)} ms per check`);
|
||||
|
||||
return new ChangeDetectionPerfRecord(msPerTick, numTicks);
|
||||
|
Reference in New Issue
Block a user