github / github/eslint-plugin-github
`github/no-useless-passive` false-negative when `passive: false` is passed
Đang mở
- 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
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