43081j / 43081j/eslint-plugin-lit
lit/no-template-bind is not correct about auto-binding?
- Ngôn ngữ chính
- TypeScript
- Star
- 138
- Fork
- 26
- Merge trung bình
- 23 giờ 29 phút
- Pull request đã merge (30 ngày)
- 4
Mô tả
First of all: Thank you so much for all your work and effort!
I've noticed that this plugin considers `.bind`-calls inside template-expressions an error, claiming that lit would auto-bind those. Trying to fix my projects unnecessary binding, I noticed that auto-binding seems to no longer be performed by lit (at least in version 2 it isn't).
I've created a small project to replicate the error and a working use of the directive in a property-binding: https://github.com/lucaelin/lit-lint-issues/blob/main/issue-template-bind.js (please ignore the async-directive stuff, as it is related to a different issue in a different project)
This change seems to also affect the no-template-arrow rule, as it is build around the same assumption.
Kind regards!
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Xem xét hành vi tự động ràng buộc của thư viện lit trong phiên bản 2, kiểm tra các quy tắc plugin 'lit/no-template-bind' và 'lit/no-template-arrow' trong mã nguồn, và kiểm thử với dự án ví dụ đã cung cấp để xác minh sự khác biệt. Cập nhật logic quy tắc để phản ánh chính xác hành vi hiện tại của lit.
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
- devtools, testing-qa
- Loại issue
- Lỗi
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- 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
- 65/100