Skip to content

feat: add no-dynamic-createelement rule #8656

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

Merged

Conversation

jcfranco
Copy link
Member

Related Issue: #8651

Summary

This adds a custom ESLint rule to ensure Stencil bundles and auto-defines child components created via document.createElement.

Copy link
Member

@driskull driskull left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🚀 👍

@jcfranco jcfranco added skip visual snapshots Pull requests that do not need visual regression testing. low risk Issues with low risk for consideration in low risk milestones labels Jan 26, 2024
@jcfranco jcfranco merged commit c7e9444 into main Jan 26, 2024
@jcfranco jcfranco deleted the jcfranco/8651-add-rule-to-prevent-dynamic-createElement-usage branch January 26, 2024 23:03
geospatialem pushed a commit that referenced this pull request Feb 1, 2024
🤖 I have created a release *beep* *boop*
---


<details><summary>@esri/eslint-plugin-calcite-components:
1.1.0</summary>

##
[1.1.0](https://github.com/Esri/calcite-design-system/compare/@esri/[email protected]...@esri/[email protected])
(2024-01-30)


### Features

* Add `no-dynamic-createelement` rule
([#8656](#8656))
([c7e9444](c7e9444))
</details>

<details><summary>@esri/calcite-components: 2.4.0</summary>

##
[2.4.0](https://github.com/Esri/calcite-design-system/compare/@esri/[email protected]...@esri/[email protected])
(2024-01-30)


### Features

* Add `no-dynamic-createelement` rule
([#8656](#8656))
([c7e9444](c7e9444))


### Bug Fixes

* **chip:** Prevent rendering internal icon if not necessary.
([#8663](#8663))
([8ca2929](8ca2929))
* **combobox:** Ensure supporting components are auto-defined
([#8657](#8657))
([e6d792b](e6d792b))
* **list-item:** Do not focus on item cells on focusIn
([#8665](#8665))
([ce9c9ae](ce9c9ae))
* **tile-select:** Ensure supporting components are auto-defined
([#8648](#8648))
([2c27f40](2c27f40))


### Dependencies

* The following workspace dependencies were updated
  * devDependencies
* @esri/eslint-plugin-calcite-components bumped from ^1.1.0-next.0 to
^1.1.0
</details>

<details><summary>@esri/calcite-components-angular: 2.4.0</summary>

##
[2.4.0](https://github.com/Esri/calcite-design-system/compare/@esri/[email protected]...@esri/[email protected])
(2024-01-30)


### Miscellaneous Chores

* **@esri/calcite-components-angular:** Synchronize undefined versions


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @esri/calcite-components bumped from ^2.4.0-next.1 to ^2.4.0
</details>

<details><summary>@esri/calcite-components-react: 2.4.0</summary>

##
[2.4.0](https://github.com/Esri/calcite-design-system/compare/@esri/[email protected]...@esri/[email protected])
(2024-01-30)


### Miscellaneous Chores

* **@esri/calcite-components-react:** Synchronize undefined versions


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @esri/calcite-components bumped from ^2.4.0-next.1 to ^2.4.0
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Elijbet pushed a commit that referenced this pull request Feb 15, 2024
🤖 I have created a release *beep* *boop*
---


<details><summary>@esri/eslint-plugin-calcite-components:
1.1.0</summary>

##
[1.1.0](https://github.com/Esri/calcite-design-system/compare/@esri/[email protected]...@esri/[email protected])
(2024-01-30)


### Features

* Add `no-dynamic-createelement` rule
([#8656](#8656))
([c7e9444](c7e9444))
</details>

<details><summary>@esri/calcite-components: 2.4.0</summary>

##
[2.4.0](https://github.com/Esri/calcite-design-system/compare/@esri/[email protected]...@esri/[email protected])
(2024-01-30)


### Features

* Add `no-dynamic-createelement` rule
([#8656](#8656))
([c7e9444](c7e9444))


### Bug Fixes

* **chip:** Prevent rendering internal icon if not necessary.
([#8663](#8663))
([8ca2929](8ca2929))
* **combobox:** Ensure supporting components are auto-defined
([#8657](#8657))
([e6d792b](e6d792b))
* **list-item:** Do not focus on item cells on focusIn
([#8665](#8665))
([ce9c9ae](ce9c9ae))
* **tile-select:** Ensure supporting components are auto-defined
([#8648](#8648))
([2c27f40](2c27f40))


### Dependencies

* The following workspace dependencies were updated
  * devDependencies
* @esri/eslint-plugin-calcite-components bumped from ^1.1.0-next.0 to
^1.1.0
</details>

<details><summary>@esri/calcite-components-angular: 2.4.0</summary>

##
[2.4.0](https://github.com/Esri/calcite-design-system/compare/@esri/[email protected]...@esri/[email protected])
(2024-01-30)


### Miscellaneous Chores

* **@esri/calcite-components-angular:** Synchronize undefined versions


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @esri/calcite-components bumped from ^2.4.0-next.1 to ^2.4.0
</details>

<details><summary>@esri/calcite-components-react: 2.4.0</summary>

##
[2.4.0](https://github.com/Esri/calcite-design-system/compare/@esri/[email protected]...@esri/[email protected])
(2024-01-30)


### Miscellaneous Chores

* **@esri/calcite-components-react:** Synchronize undefined versions


### Dependencies

* The following workspace dependencies were updated
  * dependencies
    * @esri/calcite-components bumped from ^2.4.0-next.1 to ^2.4.0
</details>

---
This PR was generated with [Release
Please](https://github.com/googleapis/release-please). See
[documentation](https://github.com/googleapis/release-please#release-please).

---------

Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Issues tied to a new feature or request. low risk Issues with low risk for consideration in low risk milestones skip visual snapshots Pull requests that do not need visual regression testing.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants