EmmanuelDemey / EmmanuelDemey/eslint-plugin-angular
`no-run-logic`: allow assignment
Open
Improvement
- Dominant language
- JavaScript
- Stars
- 620
- Forks
- 127
- PR merge metrics
- No merged PRs in 30d
Description
The following (apparently a valid configuration according to [Angular documentation on $http caching](https://docs.angularjs.org/api/ng/service/$http#caching)) is not valid with `no-run-logic` enabled
``` js
.run(function (
$http,
someCacheService
) {
$http.defaults.cache = someCacheService;
})
```
It should be allowed to assign (maybe optionally?)
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.