theme-check icon indicating copy to clipboard operation
theme-check copied to clipboard

Throw warning/errors when an custom element isn't closed with the proper tag

Open ludoboludo opened this issue 2 years ago • 0 comments

Is your feature request related to a problem? Please describe.

We had an instance in Dawn where theme check didn't pick up on an custom element being closed with the wrong tag.

Here is the scenario:

<slideshow-component>
  ...
</slider-component>

Describe the solution you'd like

I wonder if there could be a check around custom elements to make sure the closing tag is using the same name ?

Describe alternatives you've considered

No alternatives, just making sure we review our code for those kind of mistakes.

Additional context

PR that fixed this on Dawn: https://github.com/Shopify/dawn/pull/1981

ludoboludo avatar Sep 21 '22 17:09 ludoboludo