[DO NOT MERGE] Do not add / to HTML void tags#15021
[DO NOT MERGE] Do not add / to HTML void tags#15021jonathanKingston wants to merge 1 commit intoprettier:mainfrom
Conversation
913198f to
b120f20
Compare
b120f20 to
4ea5310
Compare
4ea5310 to
60213ca
Compare
|
You can mark this pull request as draft if it is not ready for review. |
|
@jonathanKingston great job! I'm applying this code by using patch-package, which is working properly for what I noticed. |
|
The issue (#5246) was reported 5 years ago and the PR was submitted already. The code provides what is requested as something optional, not mandatory. Can someone take a look at this please? |
|
@fisker @sosukesuzuki @thorn0 please? |
|
@brdillin they won't do anything, similar tools are doing this but they won't do anything no matter what, simple as that (#5246). However, we are lucky because a modern developer recently designed a plugin for this https://github.com/awmottaz/prettier-plugin-void-html |
Description
Rebase/rewrite of #8628 by @fisker to resolve #5246 as there is renewed interest by @jakearchibald see: https://twitter.com/jaffathecake/status/1676843832284004353
Checklist
docs/directory).changelog_unreleased/*/XXXX.mdfile followingchangelog_unreleased/TEMPLATE.md.✨Try the playground for this PR✨