You should use $log service instead of console for the methods 'log', 'debug', 'error', 'info', 'warn'
Rule based on Angular 1.x
The following patterns are considered problems;
/*eslint angular/log: 2*/
// invalid
console.log('Hello world!'); // error: You should use the "log" method of the AngularJS Service $log instead of the console object
// invalid
console.error('Some error!'); // error: You should use the "error" method of the AngularJS Service $log instead of the console object
The following patterns are not considered problems;
/*eslint angular/log: 2*/
// valid
$log.log('Hello world!');
// valid
$log.error('Some error!');
This rule was introduced in eslint-plugin-angular 0.1.0