prettier-plugin-void-html

Use the void tag syntax (by awmottaz)

Prettier-plugin-void-html Alternatives

Similar projects and alternatives to prettier-plugin-void-html

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a better prettier-plugin-void-html alternative or higher similarity.

prettier-plugin-void-html reviews and mentions

Posts with mentions or reviews of prettier-plugin-void-html. We have used some of these posts to build our list of alternatives and similar projects. The last one was on 2024-01-18.
  • Tailwind CSS: Automatic Class Sorting with Prettier
    6 projects | news.ycombinator.com | 18 Jan 2024
    React popularized it, and in its context having self-closing tags on React elements to indicate leaf nodes makes a lot of sense. Prettier just went with that and also does it for HTML.

    I'm wondering why you are so triggered by that issue that you have to bring it up in a context where its off-topic (it could be brought up on any post related to Prettier).

    The validator Wiki page even highlights that it's essentially a non-issue, except for interactions with unquoted attributes, which Prettier also converts to quoted attributes, so that interaction never happens. The other reason is for "teaching the wrong" mental model, which I guess is fair from the position of MDN, but Prettier was never designed as a "teaching formatter".

    And if you, even with all that context want to opt-out of that formatting, there is a community-maintained plugin that adjusts the formatting to how you want it: https://github.com/awmottaz/prettier-plugin-void-html

Stats

Basic prettier-plugin-void-html repo stats
1
41
8.4
4 months ago

awmottaz/prettier-plugin-void-html is an open source project licensed under MIT License which is an OSI approved license.

The primary programming language of prettier-plugin-void-html is JavaScript.


Sponsored
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com