43081j / 43081j/eslint-plugin-lit

lit/no-template-bind is not correct about auto-binding?

オープン
#125 コメント 7 件 リアクション 0 件 担当者 0 名 GitHub で見る
主要言語
TypeScript
スター
138
フォーク
26
平均マージ
23時間 29分
マージ済み PR(30日)
4

説明

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!

コントリビューションガイド

このリポジトリのコントリビューションガイドは索引されていません

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。