github / github/eslint-plugin-github

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

未關閉
#355 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
JavaScript
星號
336
分支
67
平均合併
1 天 9 小時
30 天內合併 PR
6

描述

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

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

貢獻指南

開啟貢獻指南

研究方向

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.

由索引模型根據 Issue 內容生成。

評估

技術堆疊
javascript
領域
tooling
Issue 類型
缺陷
難度
2/5
預估耗時
1-3 小時
活躍度
停滯
描述清晰度
描述清楚
新手友好度
58/100

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。