-
Notifications
You must be signed in to change notification settings - Fork 28
Open
Description
If there is go template in a <script> block, the whole block will not be formatted.
<script>
let x = {{.X}}
let y = x++
</script>The above block will not be formatted. Prettier output does not show errors.
Everything else works fine.
Version
βββ prettier-plugin-go-template@0.0.15
βββ prettier@3.5.1
.prettierrc
{
"plugins": ["prettier-plugin-go-template"],
"overrides": [
{
"files": ["*.html"],
"options": {
"parser": "go-template",
"bracketSameLine": true
}
},
{
"files": ["*.js", "*.ts", "*.html"],
"options": {
"semi": false,
"singleQuote": true
}
}
]
}Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels