flake.nix: add prettier hook

This commit is contained in:
notohh 2024-02-01 17:49:02 -05:00
parent c65b649ff4
commit 2462e16382
Signed by: notohh
GPG key ID: BD47506D475EE86D

View file

@ -63,6 +63,10 @@
enable = true; enable = true;
excludes = ["overlays.nix"]; excludes = ["overlays.nix"];
}; };
prettier = {
enable = true;
files = "\\.(js|ts|md)$";
};
}; };
}; };
}; };
@ -72,13 +76,8 @@
packages = with pkgs; [ packages = with pkgs; [
git git
sops sops
alejandra
statix
deadnix
stylua
yaml-language-server yaml-language-server
lua-language-server lua-language-server
nodePackages.typescript-language-server
]; ];
}; };
formatter.${system} = pkgs.alejandra; formatter.${system} = pkgs.alejandra;