mirror of
https://github.com/gohugoio/hugo.git
synced 2026-08-24 15:28:54 +00:00
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:
committed by
Bjørn Erik Pedersen
parent
f6ec83533e
commit
f042e49709
+4
-1
@@ -1,5 +1,8 @@
|
||||
{
|
||||
"plugins": ["prettier-plugin-go-template"],
|
||||
"plugins": [
|
||||
"prettier-plugin-go-template",
|
||||
"@awmottaz/prettier-plugin-void-html"
|
||||
],
|
||||
"overrides": [
|
||||
{
|
||||
"files": ["*.html"],
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user