github / github/eslint-plugin-github

`github/require-passive-events` false-positive when `passive: false` is passed

Open
#355 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
336
Forks
67
Avg merge
1d 9h
Merged PRs (30d)
6

Description

```js
window.addEventListener('touchmove', touchMove, { passive: false });
```

This should not trigger a `github/require-passive-events` warning because I've explicitly passed `passive: false`.

Contributor guide

Open the contributing guide

Research direction

Locate the implementation and existing tests for the github/require-passive-events rule, then start by checking how listener options are interpreted. The change is done when the shown touchmove listener with passive: false produces no warning while the rule's existing warning behavior remains covered by tests.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
tooling
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Clearly specified
Newbie friendliness
58/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.