feat: add svelte/html-self-closing

#190

Pull request

Merged
M
marekvospel
Jul 21, 2022, 9:32 AM

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)

Coverage

100% test coverage.

Issues

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

Info

Merged at Aug 4, 2022, 1:25 PM
Merged by ota-meshi
Assignees None
Reviewers None
Labels None
Milestone None