mirror of
https://github.com/badlogic/pi-mono.git
synced 2026-11-05 23:37:25 +00:00
36 lines
643 B
Nix
36 lines
643 B
Nix
{ pkgs }:
|
|
pkgs.treefmt.withConfig {
|
|
runtimeInputs = with pkgs; [
|
|
biome
|
|
nixfmt
|
|
];
|
|
settings = {
|
|
global.tree_root_file = "flake.nix";
|
|
formatter = {
|
|
biome = {
|
|
command = "biome";
|
|
options = [
|
|
"format"
|
|
"--write"
|
|
"--no-errors-on-unmatched"
|
|
];
|
|
includes = [
|
|
"*.cjs"
|
|
"*.css"
|
|
"*.cts"
|
|
"*.graphql"
|
|
"*.js"
|
|
"*.json"
|
|
"*.jsonc"
|
|
"*.mjs"
|
|
"*.mts"
|
|
"*.ts"
|
|
];
|
|
};
|
|
nixfmt = {
|
|
command = "nixfmt";
|
|
includes = [ "*.nix" ];
|
|
};
|
|
};
|
|
};
|
|
}
|