EmmanuelDemey / EmmanuelDemey/eslint-plugin-angular

`no-run-logic`: allow assignment

Open
#410 2 comments 0 reactions 0 assignees View on GitHub
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.