-
Notifications
You must be signed in to change notification settings - Fork 22
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
False positive when using static expressions #211
Comments
good catch we explicitly don't allow tag bindings (from before lit allowed them) this is a tough one to fix though. if we remove that, we'll be allowing all tag name bindings even though lit only supports ones which use we can't easily detect if you're using would be good to get some opinions on this. i'd be tempted to just allow them all and hope the user knows what they're doing |
The best solution would of course be to add typescript support as an optional config (for example Otherwise it would probably be enough to add a note to the docs stating that in this case the rules can be ignored and can be configured as warning. |
I agree I wonder how easy it will be to check for the existence of tseslint in the parser services. Then if it exists, we do a more thorough check. Otherwise we allow all tag bindings |
The following minimal code triggers the rules "lit/binding-positions" and "lit/no-invalid-html", although it should be completely valid according to the lit documentation (https://lit.dev/docs/templates/expressions/#static-expressions).
The text was updated successfully, but these errors were encountered: