mirror of
https://github.com/NotAShelf/nvf.git
synced 2026-04-05 18:40:53 +00:00
languages/ts: formatter fix and extra biomejs
This commit is contained in:
parent
4f1074084e
commit
1aeb2d6dc0
2 changed files with 24 additions and 1 deletions
|
|
@ -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};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue