Declare modules without a variable using the setter syntax.
Rule based on Angular 1.x
Styleguide Reference
The following patterns are considered problems;
/*eslint angular/module-setter: 2*/
// invalid
var app = angular.module('myModule', []); // error: Declare modules without a variable using the setter syntax.
The following patterns are not considered problems;
/*eslint angular/module-setter: 2*/
// valid
angular.module('myModule', [])
This rule was introduced in eslint-plugin-angular 0.1.0