diff --git a/.prettierrc b/.prettierrc new file mode 100644 index 0000000..6864da4 --- /dev/null +++ b/.prettierrc @@ -0,0 +1,5 @@ +{ + "singleQuote": false, + "arrowParens": "always", + "trailingComma": "all" +} diff --git a/cli/src/plugins/dependencyPlugin.js b/cli/src/plugins/dependencyPlugin.js index 995fb3d..e1ed1e1 100644 --- a/cli/src/plugins/dependencyPlugin.js +++ b/cli/src/plugins/dependencyPlugin.js @@ -162,7 +162,7 @@ export function dependencyPlugin() { // Serialize import map and fix indentation so it looks nice when debugging const importMapString = JSON.stringify(importMap, null, 2) - .replace(/ /g, "\t") + .replace(/ {2}/g, "\t") .replace(/\n/g, "\n\t\t"); return {