diff --git a/flake.nix b/flake.nix index 8544014..49ae8e5 100644 --- a/flake.nix +++ b/flake.nix @@ -135,15 +135,57 @@ indent_size = 4; }; shellcheck.enable = true; + prettier = { + settings = { + arrowParens = "always"; + bracketSameLine = false; + bracketSpacing = true; + editorconfig = true; + embeddedLanguageFormatting = "auto"; + endOfLine = "lf"; + # experimentalTernaries = false; + htmlWhitespaceSensitivity = "css"; + insertPragma = false; + jsxSingleQuote = true; + printWidth = 80; + proseWrap = "always"; + quoteProps = "consistent"; + requirePragma = false; + semi = true; + singleAttributePerLine = true; + singleQuote = true; + trailingComma = "all"; + useTabs = false; + vueIndentScriptAndStyle = false; + + tabWidth = 4; + overrides = { + files = ["*.js"]; + options.tabwidth = 2; + }; + }; + }; + stylua.enable = true; + ruff = { + enable = true; + format = true; + }; + taplo.enable = true; }; - settings.formatter = { - clang-format = { - options = ["--style" "GNU"]; - }; - rustfmt = { - # also add the Trixy files - includes = ["*.tri"]; + settings = { + global.excludes = ["CHANGELOG.md"]; + formatter = { + clang-format = { + options = ["--style" "GNU"]; + }; + shfmt = { + includes = ["*.bash"]; + }; + rustfmt = { + # also add the Trixy files + includes = ["*.tri"]; + }; }; }; }