# module-setter - disallow to assign modules to variables Declare modules without a variable using the setter syntax. **Rule based on Angular 1.x** **Styleguide Reference** * [y021 by johnpapa - Module - Definitions (aka Setters)](https://github.com/johnpapa/angular-styleguide/blob/master/a1/README.md#style-y021) ## Examples 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', []) ## Version This rule was introduced in eslint-plugin-angular 0.1.0 ## Links * [Rule source](/rules/module-setter.js) * [Example source](/examples/module-setter.js)