EmmanuelDemey / EmmanuelDemey/eslint-plugin-angular

Rules `no-services` and `di-order` don't work in AngularJS components

Open
#555 3 comments 0 reactions 0 assignees View on GitHub
Hacktoberfest
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.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.