github / github/eslint-plugin-github

`github/no-useless-passive` false-negative when `passive: false` is passed

Đang mở
#356 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('click', click, { passive: false });
```

This should trigger a `github/no-useless-passive` warning but doesn't.

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

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

Hướng nghiên cứu

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.

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

Đánh giá

Công nghệ
eslint, 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
48/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.