eslint-plugin-angular
Version:
ESLint rules for AngularJS projects
9 lines (7 loc) • 379 B
JavaScript
// example - valid: true
angular.module('myModule').controller('MyController', function ($log) {
$log.log('Hello World!');
});
// example - valid: false, errorMessage: "The EmptyController controller is useless because empty. You can remove it from your Router configuration or in one of your view"
angular.module('myModule').controller('EmptyController', function () {
});