djlint / djLint

✨ HTML Template Linter and Formatter. Django - Jinja - Nunjucks - Handlebars - GoLang
https://djLint.com
GNU General Public License v3.0
664 stars 81 forks source link

[FEATURE] `<slot></slot>` should not trigger empty tags warning #866

Open mangelozzi opened 1 month ago

mangelozzi commented 1 month ago

The native slot component is for slotting content, and this is probably the most common usage of it:

<slot></slot>

It raises empty pair found consider removing [H020], which I think should not be displayed if it is a slot element.