github / github/eslint-plugin-github
`github/no-useless-passive` false-negative when `passive: false` is passed
Open
- Dominant language
- JavaScript
- Stars
- 336
- Forks
- 67
- Avg merge
- 1d 9h
- Merged PRs (30d)
- 6
Description
```js
window.addEventListener('click', click, { passive: false });
```
This should trigger a `github/no-useless-passive` warning but doesn't.
Contributor guide
Research direction
Start at the github/no-useless-passive rule and reproduce the provided addEventListener example. Trace how the rule handles the options object, then add coverage so passive: false produces a warning; done means the example is reported without changing the rule's handling of other passive values.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- eslint, javascript
- Domain
- tooling
- Issue type
- Bug
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Clearly specified
- Newbie friendliness
- 48/100