Skip to content

Commit

Permalink
hooks: add note for flake-based projects using paths
Browse files Browse the repository at this point in the history
  • Loading branch information
sandydoo committed Jan 19, 2025
1 parent baf942e commit 46171f0
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/hooks.nix
Original file line number Diff line number Diff line change
Expand Up @@ -176,6 +176,7 @@ in
description = ''
`biome` binary path.
For example, if you want to use the `biome` binary from `node_modules`, use `"./node_modules/.bin/biome"`.
Use a string instead of a path to avoid having to Git track the file in projects that use Nix flakes.
'';
default = null;
defaultText = lib.literalExpression ''
Expand Down Expand Up @@ -477,6 +478,7 @@ in
description = ''
`eslint` binary path.
For example, if you want to use the `eslint` binary from `node_modules`, use `"./node_modules/.bin/eslint"`.
Use a string instead of a path to avoid having to Git track the file in projects that use Nix flakes.
'';
default = null;
defaultText = lib.literalExpression ''
Expand Down Expand Up @@ -1065,6 +1067,7 @@ in
description = ''
`prettier` binary path.
For example, if you want to use the `prettier` binary from `node_modules`, use `"./node_modules/.bin/prettier"`.
Use a string instead of a path to avoid having to Git track the file in projects that use Nix flakes.
'';
type = types.nullOr (types.oneOf [ types.str types.path ]);
default = null;
Expand Down Expand Up @@ -1439,6 +1442,7 @@ in
description = ''
`rome` binary path.
For example, if you want to use the `rome` binary from `node_modules`, use `"./node_modules/.bin/rome"`.
Use a string instead of a path to avoid having to Git track the file in projects that use Nix flakes.
'';
default = null;
defaultText = lib.literalExpression ''
Expand Down

0 comments on commit 46171f0

Please sign in to comment.