Unverified Commit bb119595 authored by Martin Weinelt's avatar Martin Weinelt Committed by GitHub
Browse files

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

parents 1ef5ac33 c365dc08
Loading
Loading
Loading
Loading
+0 −54
Original line number Diff line number Diff line
/**
  # 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