mirror of
https://github.com/gohugoio/hugoDocs.git
synced 2025-08-03 12:38:14 -04:00

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.
25 lines
448 B
Plaintext
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
|
|
}
|
|
}
|
|
]
|
|
}
|