We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
binding-positions
In Lit v2 you can achieve some of these invalid binding positions by using import { html } from 'lit/static-html.js'; .
import { html } from 'lit/static-html.js';
We should probably warn about the binding positions if they're not utilizing the static html function.
https://lit.dev/docs/api/static-html/ https://lit.dev/docs/templates/expressions/#expression-locations https://lit.dev/docs/templates/expressions/#static-expressions
The text was updated successfully, but these errors were encountered:
Same issue with no-invalid-html, when trying to use e.g. the code from the lit docs
render() { return html` <${this.tag} ${this.activeAttribute}?=${this.active}> <p>${this.caption}</p> </${this.tag}>`; }
Results in
Template contained invalid HTML syntax, error was: invalid-first-character-of-tag-name eslint lit/no-invalid-html
Sorry, something went wrong.
that one in particular is because our placeholders are currently comments except in the case of attributes, then they are placeholder attributes.
we need to implement better placeholder/substitution to account for tags/attributes/etc.
i was hoping peter on the lit team would finish the analyzer he started building first, so we could just use the same analysis here.
No branches or pull requests
In Lit v2 you can achieve some of these invalid binding positions by using
import { html } from 'lit/static-html.js';
.We should probably warn about the binding positions if they're not utilizing the static html function.
https://lit.dev/docs/api/static-html/
https://lit.dev/docs/templates/expressions/#expression-locations
https://lit.dev/docs/templates/expressions/#static-expressions
The text was updated successfully, but these errors were encountered: