feat: add svelte/html-self-closing
Moved to separate PR from ota-meshi#186
svelte/html-self-closing
A simple rule which automatically closes html tags.
<div></div>
<!-- gets fixed to -->
<div>
vue/html-self-closing
also supports custom setting for svg and math elements, which I couldn't simply extract from Svelte AST, so I didn't include it. It can be simply added by checking whether element name is known svg / math element (just like it's done with void elements)
100% test coverage.
svelte:self</svelte:self> seems to be affected by the normal option, but I think they need to share the component option or have different option.
is yet to be resolved
solved
Sorry, I accidentally changed the review status. 😅
Moved to separate PR from ota-meshi/eslint-plugin-svelte#186
chore(html-self-closing): move options from html object, move utils to ast-utils
• Jul 27, 2022, 2:38 PM