|
172 | 172 | options.settings = { |
173 | 173 | binPath = |
174 | 174 | mkOption { |
175 | | - type = types.nullOr types.path; |
176 | | - description = "`biome` binary path. E.g. if you want to use the `biome` in `node_modules`, use `./node_modules/.bin/biome`."; |
| 175 | + type = types.nullOr (types.oneOf [ types.str types.path ]); |
| 176 | + description = '' |
| 177 | + `biome` binary path. For example, if you want to use the `biome` binary from `node_modules`, use `"./node_modules/.bin/biome"`. |
| 178 | + ''; |
177 | 179 | default = null; |
178 | 180 | }; |
179 | 181 |
|
|
464 | 466 | options.settings = { |
465 | 467 | binPath = |
466 | 468 | mkOption { |
467 | | - type = types.nullOr types.path; |
468 | | - description = |
469 | | - "`eslint` binary path. E.g. if you want to use the `eslint` in `node_modules`, use `./node_modules/.bin/eslint`."; |
| 469 | + type = types.nullOr (types.oneOf [ types.str types.path ]); |
| 470 | + description = '' |
| 471 | + `eslint` binary path. For example, if you want to use the `eslint` binary from `node_modules`, use `"./node_modules/.bin/eslint"`. |
| 472 | + ''; |
470 | 473 | default = null; |
471 | 474 | defaultText = lib.literalExpression "\${tools.eslint}/bin/eslint"; |
472 | 475 | }; |
|
619 | 622 | options.settings = { |
620 | 623 | hintFile = |
621 | 624 | mkOption { |
622 | | - type = types.nullOr types.path; |
| 625 | + type = types.nullOr (types.oneOf [ types.str types.path ]); |
623 | 626 | description = "Path to hlint.yaml. By default, hlint searches for .hlint.yaml in the project root."; |
624 | 627 | default = null; |
625 | 628 | }; |
|
822 | 825 | options.settings = { |
823 | 826 | binPath = |
824 | 827 | mkOption { |
825 | | - type = types.nullOr types.path; |
| 828 | + type = types.nullOr (types.oneOf [ types.str types.path ]); |
826 | 829 | description = "mkdocs-linkcheck binary path. Should be used to specify the mkdocs-linkcheck binary from your Nix-managed Python environment."; |
827 | 830 | default = null; |
828 | 831 | defaultText = lib.literalExpression '' |
@@ -1046,9 +1049,10 @@ in |
1046 | 1049 | options.settings = { |
1047 | 1050 | binPath = |
1048 | 1051 | mkOption { |
1049 | | - description = |
1050 | | - "`prettier` binary path. E.g. if you want to use the `prettier` in `node_modules`, use `./node_modules/.bin/prettier`."; |
1051 | | - type = types.nullOr types.path; |
| 1052 | + description = '' |
| 1053 | + `prettier` binary path. For example, if you want to use the `prettier` binary from `node_modules`, use `"./node_modules/.bin/prettier"`. |
| 1054 | + ''; |
| 1055 | + type = types.nullOr (types.oneOf [ types.str types.path ]); |
1052 | 1056 | default = null; |
1053 | 1057 | defaultText = lib.literalExpression '' |
1054 | 1058 | "''${tools.prettier}/bin/prettier" |
|
1137 | 1141 | description = "Path to a file containing patterns that describe files to ignore. |
1138 | 1142 | By default, prettier looks for `./.gitignore` and `./.prettierignore`. |
1139 | 1143 | Multiple values are accepted."; |
1140 | | - type = types.listOf types.path; |
| 1144 | + type = types.listOf (types.oneOf [ types.str types.path ]); |
1141 | 1145 | default = [ ]; |
1142 | 1146 | }; |
1143 | 1147 | ignore-unknown = |
@@ -1414,8 +1418,10 @@ in |
1414 | 1418 | options.settings = { |
1415 | 1419 | binPath = |
1416 | 1420 | mkOption { |
1417 | | - type = types.nullOr types.path; |
1418 | | - description = "`biome` binary path. E.g. if you want to use the `biome` in `node_modules`, use `./node_modules/.bin/biome`."; |
| 1421 | + type = types.nullOr (types.oneOf [ types.str types.path ]); |
| 1422 | + description = '' |
| 1423 | + `biome` binary path. For example, if you want to use the `biome` binary from `node_modules`, use `"./node_modules/.bin/biome"`. |
| 1424 | + ''; |
1419 | 1425 | default = null; |
1420 | 1426 | defaultText = "\${tools.biome}/bin/biome"; |
1421 | 1427 | }; |
|
0 commit comments