aboutsummaryrefslogtreecommitdiff
path: root/treefmt.nix
diff options
context:
space:
mode:
authorMiran Bastaja <mbastaja@sorre.xyz>2025-04-05 12:30:14 +0200
committerMiran Bastaja <mbastaja@sorre.xyz>2025-04-05 12:37:55 +0200
commit3bdde9a81129a45b4791461717618df453c3066e (patch)
treed08aba3301cd793d66d49b1a1b7b5820047c1f7e /treefmt.nix
parent3db4850e40925870768f1e12952491e78db486f7 (diff)
expand treefmt config
Diffstat (limited to 'treefmt.nix')
-rw-r--r--treefmt.nix41
1 files changed, 40 insertions, 1 deletions
diff --git a/treefmt.nix b/treefmt.nix
index 970592a..03f31a2 100644
--- a/treefmt.nix
+++ b/treefmt.nix
@@ -1,5 +1,44 @@
{ ... }:
{
projectRootFile = "flake.nix";
- programs.nixfmt.enable = true;
+ programs = {
+ nixfmt.enable = true;
+ beautysh = {
+ enable = true;
+ includes = [
+ "*.sh"
+ "*.bash"
+ ".envrc"
+ ];
+ };
+ deno = {
+ enable = true;
+ includes = [
+ "*.css"
+ "*.html"
+ "*.js"
+ "*.json"
+ "*.json5"
+ "*.jsonc"
+ "*.jsx"
+ "*.less"
+ "*.markdown"
+ "*.md"
+ "*.sass"
+ "*.scss"
+ "*.ts"
+ "*.tsx"
+ "*.yaml"
+ "*.yml"
+ ];
+ };
+ };
+
+ settings.global.excludes = [
+ "secrets/*"
+ ".gitattributes"
+ ".gitignore"
+ ".ignore"
+ ".helix/ignore"
+ ];
}