Skip to content

Commit ddae800

Browse files
authored
Merge pull request #716 from lew/feat-biome-flags
feat: add hooks.biome.settings.flags for extra CLI flags
2 parents 6b8e1c6 + 6a3d22f commit ddae800

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

modules/hooks.nix

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -216,6 +216,13 @@ in
216216
# underlying biome binary (i.e biome.json if exists)
217217
default = "";
218218
};
219+
220+
flags = mkOption {
221+
type = types.str;
222+
description = "Additional flags passed to biome. See all available [here](https://biomejs.dev/reference/cli/).";
223+
default = "";
224+
example = "--no-errors-on-unmatched";
225+
};
219226
};
220227
};
221228
};
@@ -2675,6 +2682,7 @@ in
26752682
mkCmdArgs [
26762683
[ (hooks.biome.settings.write) "--write" ]
26772684
[ (hooks.biome.settings.configPath != "") "--config-path ${hooks.biome.settings.configPath}" ]
2685+
[ (hooks.biome.settings.flags != "") hooks.biome.settings.flags ]
26782686
];
26792687
in
26802688
"${binPath} check ${cmdArgs}";

0 commit comments

Comments
 (0)