languages/ts: formatter fix and extra biomejs

This commit is contained in:
Snoweuph 2026-03-21 13:09:59 +01:00
commit 1aeb2d6dc0
No known key found for this signature in database
GPG key ID: BEFC41DA223CEC55
2 changed files with 24 additions and 1 deletions

View file

@ -191,6 +191,14 @@
biome = {
command = getExe pkgs.biome;
};
biome-check = {
command = getExe pkgs.biome;
};
biome-organize-imports = {
command = getExe pkgs.biome;
};
};
# TODO: specify packages
@ -213,6 +221,14 @@
];
};
};
biomejs = let
pkg = pkgs.biome;
in {
package = pkg;
config = {
cmd = getExe pkg;
};
};
};
in {
_file = ./ts.nix;
@ -326,7 +342,7 @@ in {
# .tsx/.jsx files
typescriptreact = cfg.format.type;
};
setupOpts.formatters =
formatters =
mapListToAttrs (name: {
inherit name;
value = formats.${name};