[ESLint] remove ban-props-on-host ESLint rules #10422
Labels
4 - verified
Issues that have been released and confirmed resolved.
breaking change
Issues and pull requests with code changes that are not backwards compatible.
estimate - 2
Small fix or update, may require updates to tests.
p - high
Issue should be addressed in the current milestone, impacts component or core functionality
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.
Milestone
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: