build(npm): set up Prettier

This commit is contained in:
Ben Goldsworthy 2025-01-12 15:51:44 +01:00
parent 5c664be9a8
commit 6fb6ad8756
No known key found for this signature in database
4 changed files with 44 additions and 0 deletions

14
.prettierrc Normal file
View file

@ -0,0 +1,14 @@
{
"plugins": ["prettier-plugin-go-template"],
"proseWrap": "preserve",
"overrides": [
{
"files": ["*.html"],
"options": {
"parser": "go-template",
"printWidth": 80,
"singleAttributePerLine": true
}
}
]
}