[ESLint] remove ban-props-on-host ESLint rules #10422
Labels
0 - new
New issues that need assignment.
blocked
This issue is blocked by another issue.
needs triage
Planning workflow - pending design/dev review.
p - low
Issue is non core or affecting less that 10% of people using the library
tooling
Issues relating to build system fixes or improvements.
Priority impact
p - low
Summary
Blocked by #10310
Calcite developed an
ban-props-on-host
ESLint rule.Such rule is not applicable in Lumina because
<Host>
does not exist in Lit.Instead, you can set props or attributes imperatively inside of connectedCallback or render.
It seems like Stencil's
<Host>
didn't check if attributes were already set by the user and would overwrite them. Imperatively, you can use??=
instead of=
when assigning props to avoid overwriting existing value.The codemod takes care of migrating all
<Host>
usages.Desired Outcome
After migrating to Lumina, remove the
ban-props-on-host
ESLint rule.Resources
No response
The text was updated successfully, but these errors were encountered: