EmmanuelDemey / EmmanuelDemey/eslint-plugin-angular
Disallow use of angular functions
Open
Improvement
- Dominant language
- JavaScript
- Stars
- 620
- Forks
- 127
- PR merge metrics
- No merged PRs in 30d
Description
There are rules which enforce the use of AngularJS functions.
**Good**
``` js
angular.isUndefined(foo);
```
**Bad**
``` js
foo === undefined;
```
I think these should all have an opposite variant as well:
**Config**
``` yaml
rules:
angular/definedundefined:
- 2
- never
```
**Good**
``` js
foo === undefined;
```
**Bad**
``` js
angular.isUndefined(foo);
```
I figured the value of this extra property can be `always` or `never`, because this matches a lot of builtin ESLint rules.
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.