dev: Add prettier-plugin-void-html

This is a Prettier plugin to format void HTML elements using the void
tag syntax instead of self-closing syntax. Additionally, if
self-closing syntax is used on non-void elements, then they will be
"unwrapped" so that both the opening and closing tags are present.
This commit is contained in:
Joe Mooring 2025-02-13 20:16:28 -08:00 committed by Bjørn Erik Pedersen
parent f6ec83533e
commit f042e49709
2 changed files with 5 additions and 1 deletions

View File

@ -1,5 +1,8 @@
{
"plugins": ["prettier-plugin-go-template"],
"plugins": [
"prettier-plugin-go-template",
"@awmottaz/prettier-plugin-void-html"
],
"overrides": [
{
"files": ["*.html"],

View File

@ -9,6 +9,7 @@
"author": "",
"license": "",
"devDependencies": {
"@awmottaz/prettier-plugin-void-html": "^1.8.0",
"@tailwindcss/cli": "^4.0.0",
"@tailwindcss/typography": "^0.5.15",
"prettier": "^3.5.0",