Glad I found this post 🥳 by @bnijenhuis
My output HTML always bugged me a bit, as it would be ruined by template engine stuff... Newlines all over the place.
https://bnijenhuis.nl/notes/adding-prettier-in-eleventy-using-transforms/
Using Prettier as an 11ty Transform tidies that all up, even keeping the indentation 😊