When using a module, avoid using a variable and instead use chaining with the getter syntax
Rule based on Angular 1.x
Styleguide Reference
The following patterns are considered problems;
/*eslint angular/module-getter: 2*/
// invalid
app.controller('MyController', function () {
// ...
}); // error: Avoid using a variable and instead use chaining with the getter syntax.
The following patterns are not considered problems;
/*eslint angular/module-getter: 2*/
// valid
angular.module('myModule').controller('MyController', function () {
// ...
});
This rule was introduced in eslint-plugin-angular 0.1.0