|
174 | 174 | mkOption { |
175 | 175 | type = types.nullOr (types.oneOf [ types.str types.path ]); |
176 | 176 | description = '' |
177 | | - `biome` binary path. For example, if you want to use the `biome` binary from `node_modules`, use `"./node_modules/.bin/biome"`. |
| 177 | + `biome` binary path. |
| 178 | + For example, if you want to use the `biome` binary from `node_modules`, use `"./node_modules/.bin/biome"`. |
178 | 179 | ''; |
179 | 180 | default = null; |
| 181 | + defaultText = lib.literalExpression '' |
| 182 | + "''${tools.biome}/bin/biome" |
| 183 | + ''; |
| 184 | + example = lib.literalExpression '' |
| 185 | + "./node_modules/.bin/biome" |
| 186 | + ''; |
180 | 187 | }; |
181 | 188 |
|
182 | 189 | write = |
|
468 | 475 | mkOption { |
469 | 476 | type = types.nullOr (types.oneOf [ types.str types.path ]); |
470 | 477 | description = '' |
471 | | - `eslint` binary path. For example, if you want to use the `eslint` binary from `node_modules`, use `"./node_modules/.bin/eslint"`. |
| 478 | + `eslint` binary path. |
| 479 | + For example, if you want to use the `eslint` binary from `node_modules`, use `"./node_modules/.bin/eslint"`. |
472 | 480 | ''; |
473 | 481 | default = null; |
474 | | - defaultText = lib.literalExpression "\${tools.eslint}/bin/eslint"; |
| 482 | + defaultText = lib.literalExpression '' |
| 483 | + "''${tools.eslint}/bin/eslint" |
| 484 | + ''; |
| 485 | + example = lib.literalExpression '' |
| 486 | + "./node_modules/.bin/eslint" |
| 487 | + ''; |
475 | 488 | }; |
476 | 489 |
|
477 | 490 | extensions = |
|
492 | 505 | binPath = |
493 | 506 | mkOption { |
494 | 507 | type = types.nullOr types.str; |
495 | | - description = "flake8 binary path. Should be used to specify flake8 binary from your Nix-managed Python environment."; |
| 508 | + description = "flake8 binary path. Should be used to specify flake8 binary from your Python environment."; |
496 | 509 | default = null; |
497 | 510 | defaultText = lib.literalExpression '' |
498 | 511 | "''${tools.flake8}/bin/flake8" |
|
826 | 839 | binPath = |
827 | 840 | mkOption { |
828 | 841 | type = types.nullOr (types.oneOf [ types.str types.path ]); |
829 | | - description = "mkdocs-linkcheck binary path. Should be used to specify the mkdocs-linkcheck binary from your Nix-managed Python environment."; |
| 842 | + description = "mkdocs-linkcheck binary path. Should be used to specify the mkdocs-linkcheck binary from your Python environment."; |
830 | 843 | default = null; |
831 | 844 | defaultText = lib.literalExpression '' |
832 | 845 | "''${tools.mkdocs-linkcheck}/bin/mkdocs-linkcheck" |
@@ -1050,13 +1063,17 @@ in |
1050 | 1063 | binPath = |
1051 | 1064 | mkOption { |
1052 | 1065 | description = '' |
1053 | | - `prettier` binary path. For example, if you want to use the `prettier` binary from `node_modules`, use `"./node_modules/.bin/prettier"`. |
| 1066 | + `prettier` binary path. |
| 1067 | + For example, if you want to use the `prettier` binary from `node_modules`, use `"./node_modules/.bin/prettier"`. |
1054 | 1068 | ''; |
1055 | 1069 | type = types.nullOr (types.oneOf [ types.str types.path ]); |
1056 | 1070 | default = null; |
1057 | 1071 | defaultText = lib.literalExpression '' |
1058 | 1072 | "''${tools.prettier}/bin/prettier" |
1059 | 1073 | ''; |
| 1074 | + example = lib.literalExpression '' |
| 1075 | + "./node_modules/.bin/prettier" |
| 1076 | + ''; |
1060 | 1077 | }; |
1061 | 1078 | allow-parens = |
1062 | 1079 | mkOption { |
|
1311 | 1328 | binPath = |
1312 | 1329 | mkOption { |
1313 | 1330 | type = types.nullOr types.str; |
1314 | | - description = "Pylint binary path. Should be used to specify Pylint binary from your Nix-managed Python environment."; |
| 1331 | + description = "Pylint binary path. Should be used to specify Pylint binary from your Python environment."; |
1315 | 1332 | default = null; |
1316 | 1333 | defaultText = lib.literalExpression '' |
1317 | 1334 | "''${tools.pylint}/bin/pylint" |
|
1357 | 1374 | binPath = |
1358 | 1375 | mkOption { |
1359 | 1376 | type = types.nullOr types.str; |
1360 | | - description = "pyupgrade binary path. Should be used to specify the pyupgrade binary from your Nix-managed Python environment."; |
| 1377 | + description = "pyupgrade binary path. Should be used to specify the pyupgrade binary from your Python environment."; |
1361 | 1378 | default = null; |
1362 | 1379 | defaultText = lib.literalExpression '' |
1363 | 1380 | "''${tools.pyupgrade}/bin/pyupgrade" |
@@ -1420,10 +1437,16 @@ in |
1420 | 1437 | mkOption { |
1421 | 1438 | type = types.nullOr (types.oneOf [ types.str types.path ]); |
1422 | 1439 | description = '' |
1423 | | - `biome` binary path. For example, if you want to use the `biome` binary from `node_modules`, use `"./node_modules/.bin/biome"`. |
| 1440 | + `rome` binary path. |
| 1441 | + For example, if you want to use the `rome` binary from `node_modules`, use `"./node_modules/.bin/rome"`. |
1424 | 1442 | ''; |
1425 | 1443 | default = null; |
1426 | | - defaultText = "\${tools.biome}/bin/biome"; |
| 1444 | + defaultText = lib.literalExpression '' |
| 1445 | + "''${tools.rome}/bin/rome |
| 1446 | + ''; |
| 1447 | + example = lib.literalExpression '' |
| 1448 | + "./node_modules/.bin/rome" |
| 1449 | + ''; |
1427 | 1450 | }; |
1428 | 1451 |
|
1429 | 1452 | write = |
|
0 commit comments