Fix prettier config

This commit is contained in:
Nathan Upchurch 2024-09-20 23:55:41 -05:00
parent acb55c80a1
commit 6dc2db4c52

View File

@ -27,7 +27,7 @@ export default async function(eleventyConfig) {
// Transforms
eleventyConfig.addTransform("prettier", function (content, outputPath) {
if (outputPath && outputPath.endsWith(".html")) {
return prettier.format(content, {parser: "html", bracketSameLine: true, vueIndentScriptAndStyle: true, singleAttributePerLine: true, htmlWhitespaceSensitivity: "ignore"});
return prettier.format(content, {parser: "html", bracketSameLine: true, vueIndentScriptAndStyle: true, singleAttributePerLine: true, htmlWhitespaceSensitivity: "css"});
} else {
return content;
}