EmmanuelDemey / EmmanuelDemey/eslint-plugin-angular

False positive for: use $document instead of document

Open
#403 2 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
620
Forks
127
PR merge metrics
No merged PRs in 30d

Description

I'm using eslint-plugin-angular version 1.3.0. In one of my Angular services I have a function that accepts a JS object parameter which name is **document**, e.g.:

```
function sampleFunc(document) {
if (document.enabled) {
// ...
}
// ...
}
```

The plugin treats the document parameters as the global reference to the document object and raises the error.

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.