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:
@ -27,6 +27,7 @@ export interface CompilerInterface {
|
||||
const DEBUG = false;
|
||||
|
||||
function debug(msg: string, ...o: any[]) {
|
||||
// tslint:disable-next-line:no-console
|
||||
if (DEBUG) console.log(msg, ...o);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user