about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-06-11 09:38:45 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-06-11 09:38:45 +0200
commit3fad7144b1917878d8a2f2d1d54c539df2bc0f31 (patch)
treebc837fc3e45b3a8e0710f025d097c22d1d8548f3
parentdocs(README): init (diff)
downloadflake-templates-3fad7144b1917878d8a2f2d1d54c539df2bc0f31.tar.gz
flake-templates-3fad7144b1917878d8a2f2d1d54c539df2bc0f31.zip
fix(common/treefmt.nix): Improve the prettier formatting configuration
-rw-r--r--common/files/treefmt.nix9
1 files changed, 3 insertions, 6 deletions
diff --git a/common/files/treefmt.nix b/common/files/treefmt.nix
index 1cbab40..794e8fc 100644
--- a/common/files/treefmt.nix
+++ b/common/files/treefmt.nix
@@ -18,6 +18,7 @@ treefmt-nix.lib.evalModule pkgs (
       };
       shellcheck.enable = true;
       prettier = {
+        enable = true;
         settings = {
           arrowParens = "always";
           bracketSameLine = false;
@@ -35,16 +36,12 @@ treefmt-nix.lib.evalModule pkgs (
           requirePragma = false;
           semi = true;
           singleAttributePerLine = true;
-          singleQuote = true;
+          singleQuote = false;
           trailingComma = "all";
           useTabs = false;
           vueIndentScriptAndStyle = false;
 
-          tabWidth = 4;
-          overrides = {
-            files = ["*.js"];
-            options.tabwidth = 2;
-          };
+          tabWidth = 2;
         };
       };
       stylua.enable = true;