Skip to content

Commit 46171f0

Browse files
committed
hooks: add note for flake-based projects using paths
1 parent baf942e commit 46171f0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

modules/hooks.nix

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -176,6 +176,7 @@ in
176176
description = ''
177177
`biome` binary path.
178178
For example, if you want to use the `biome` binary from `node_modules`, use `"./node_modules/.bin/biome"`.
179+
Use a string instead of a path to avoid having to Git track the file in projects that use Nix flakes.
179180
'';
180181
default = null;
181182
defaultText = lib.literalExpression ''
@@ -477,6 +478,7 @@ in
477478
description = ''
478479
`eslint` binary path.
479480
For example, if you want to use the `eslint` binary from `node_modules`, use `"./node_modules/.bin/eslint"`.
481+
Use a string instead of a path to avoid having to Git track the file in projects that use Nix flakes.
480482
'';
481483
default = null;
482484
defaultText = lib.literalExpression ''
@@ -1065,6 +1067,7 @@ in
10651067
description = ''
10661068
`prettier` binary path.
10671069
For example, if you want to use the `prettier` binary from `node_modules`, use `"./node_modules/.bin/prettier"`.
1070+
Use a string instead of a path to avoid having to Git track the file in projects that use Nix flakes.
10681071
'';
10691072
type = types.nullOr (types.oneOf [ types.str types.path ]);
10701073
default = null;
@@ -1439,6 +1442,7 @@ in
14391442
description = ''
14401443
`rome` binary path.
14411444
For example, if you want to use the `rome` binary from `node_modules`, use `"./node_modules/.bin/rome"`.
1445+
Use a string instead of a path to avoid having to Git track the file in projects that use Nix flakes.
14421446
'';
14431447
default = null;
14441448
defaultText = lib.literalExpression ''

0 commit comments

Comments
 (0)