From 3fad7144b1917878d8a2f2d1d54c539df2bc0f31 Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Tue, 11 Jun 2024 09:38:45 +0200 Subject: fix(common/treefmt.nix): Improve the prettier formatting configuration --- common/files/treefmt.nix | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'common') 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; -- cgit 1.4.1