Add rule to prevent dynamic tag usage with createElement
#8651
Labels
4 - verified
Issues that have been released and confirmed resolved.
Calcite (dev)
Issues logged by Calcite developers.
enhancement
Issues tied to a new feature or request.
eslint-plugin-calcite-components
Issues specific to the @esri/eslint-plugin-calcite-components package.
estimate - 3
A day or two of work, likely requires updates to tests.
impact - p3 - not time sensitive
User set priority impact status of p3 - not time sensitive
p - medium
Issue is non core or affecting less that 60% of people using the library
Milestone
Check existing issues
Description
Stems from #8648 (comment).
Dynamic tags passed to
document.createElement
prevent the Stencil build from auto-defining them. This rule should help ensure static element tag usage.Acceptance Criteria
Code like the following is flagged
and the following is fine
Relevant Info
No response
Which Component
Any component that is dynamically creating supporting components.
Example Use Case
No response
Priority impact
p4 - not time sensitive
Calcite package
Esri team
Calcite (dev)
The text was updated successfully, but these errors were encountered: