mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-09-09 14:55:48 -04: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:
parent
f6ec83533e
commit
f042e49709
@ -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",
|
||||
|
Loading…
x
Reference in New Issue
Block a user