github / github/eslint-plugin-github

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

Đang mở
#355 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
JavaScript
Star
336
Fork
67
Merge trung bình
1 ngày 9 giờ
Pull request đã merge (30 ngày)
6

Mô tả

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

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

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Hướng nghiên cứu

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.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Đánh giá

Công nghệ
javascript
Lĩnh vực
tooling
Loại issue
Lỗi
Độ khó
2/5
Thời gian dự kiến
1-3 giờ
Mức độ hoạt động
Đình trệ
Độ rõ ràng
Đặc tả rõ ràng
Mức phù hợp với người mới
58/100

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.