prettier: Remove references to dead prettier-plugin-toml package (#490344)

This commit is contained in:
Martin Weinelt
2026-02-14 13:05:43 +00:00
committed by GitHub
-54
View File
@@ -1,17 +1,3 @@
/**
# Example
Prettier with plugins and Vim Home Manager configuration
```nix
pkgs.prettier.override {
plugins = with pkgs.nodePackages; [
prettier-plugin-toml
# ...
];
}
```
*/
{
fetchFromGitHub,
lib,
@@ -23,26 +9,6 @@
plugins ? [ ],
}:
let
/**
# Example
```nix
exportRelativePathOf (builtins.fromJSON "./package.json")
=>
lib/node_modules/prettier-plugin-toml/./lib/index.cjs
```
# Type
```
exportRelativePathOf :: AttrSet => String
```
# Arguments
packageJsonAttrs
: Attribute set with shape similar to `package.json` file
*/
## Blame NodeJS
exportRelativePathOf =
let
@@ -80,26 +46,6 @@ let
lib.attrByPath [ "prettier" "plugins" ] [ "null" ] packageJsonAttrs
)) packageJsonAttrs;
/**
# Example
```nix
nodeEntryPointOf pkgs.nodePackages.prettier-plugin-toml
=>
/nix/store/<NAR_HASH>-prettier-plugin-toml-<VERSION>/lib/node_modules/prettier-plugin-toml/./lib/index.cjs
```
# Type
```
nodeEntryPointOf :: AttrSet => String
```
# Arguments
plugin
: Attribute set with `.pname` and `.outPath` defined
*/
nodeEntryPointOf =
plugin:
let