eslint-plugin-angular
Version:
ESLint rules for AngularJS projects
12 lines (8 loc) • 441 B
JavaScript
// example - valid: true
$log.log('Hello world!');
// example - valid: true
$log.error('Some error!');
// example - valid: false, errorMessage: "You should use the \"log\" method of the AngularJS Service $log instead of the console object"
console.log('Hello world!');
// example - valid: false, errorMessage: "You should use the \"error\" method of the AngularJS Service $log instead of the console object"
console.error('Some error!');