EmmanuelDemey / EmmanuelDemey/eslint-plugin-angular
Rules `no-services` and `di-order` don't work in AngularJS components
- Dominant language
- JavaScript
- Stars
- 620
- Forks
- 127
- PR merge metrics
- No merged PRs in 30d
Description
I use it to detect `$http` and `$resource` injections like this:
```
"angular/no-services": [2, ["http", "resource"]]
```
However, it doesn't detect those injections in my components. I've even tried to configure the rule like this, with no luck either way:
```
"angular/no-services": [2, ["http", "resource"], ["component"]]
// or
"angular/no-services": [2, {"component": ["http", "resource"]}]
```
EDIT: The rule `di-order` does not work either. This could potentially mean that other rules related to controllers might not work inside components.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.