From c99bb703d973e2e9c66f91d6b9ccd8877dec6e0a Mon Sep 17 00:00:00 2001 From: Andre Wiggins <459878+andrewiggins@users.noreply.github.com> Date: Thu, 29 Feb 2024 11:57:56 -0800 Subject: [PATCH] Add prettierrc (#11) Specify this repositories style so when it is included in other repos the current style is maintained --- .prettierrc | 5 +++++ cli/src/plugins/dependencyPlugin.js | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .prettierrc 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 {