hugoDocs/.prettierrc
Joe Mooring f042e49709 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.
2025-02-14 09:11:20 +01:00

25 lines
448 B
Plaintext

{
"plugins": [
"prettier-plugin-go-template",
"@awmottaz/prettier-plugin-void-html"
],
"overrides": [
{
"files": ["*.html"],
"options": {
"parser": "go-template",
"goTemplateBracketSpacing": true,
"bracketSameLine": true
}
},
{
"files": ["*.js", "*.ts"],
"options": {
"useTabs": true,
"printWidth": 120,
"singleQuote": true
}
}
]
}