about summary refs log tree commit diff stats
path: root/common/files/treefmt.nix
diff options
context:
space:
mode:
Diffstat (limited to 'common/files/treefmt.nix')
-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;