Skip to content
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

[Feature request] Enforce custom self closing tags #183

Open
jcurbanog opened this issue Mar 28, 2024 · 1 comment
Open

[Feature request] Enforce custom self closing tags #183

jcurbanog opened this issue Mar 28, 2024 · 1 comment
Labels
enhancement New feature or request

Comments

@jcurbanog
Copy link

The current implementation of require-closing-tags includes the option allowSelfClosingCustom. When set to false, self-closing tags for custom elements are not permitted. However, when set to true, it only ignores custom tags, regardless of whether they are self-closed or not. This behavior differs from selfClosing, which enforces the use of self-closing tags of Void Elements when is set to true.

Would it be possible to include an option (or modify the existing one) that would enforce the use of self-closing tags for void custom tags?

@yeonjuan yeonjuan added the enhancement New feature or request label Mar 31, 2024
@yeonjuan
Copy link
Owner

Hi @jcurbanog Thanks for the suggestions. I think we could support this by allowing an array of element names or regex as an option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants