Unverified Commit 3109179f authored by natsukium's avatar natsukium
Browse files

textlint-rule-terminology: repackage with buildNpmPackage

parent 9587d0c8
Loading
Loading
Loading
Loading
+36 −0
Original line number Diff line number Diff line
{
  lib,
  fetchFromGitHub,
  buildNpmPackage,
  textlint,
  textlint-rule-terminology,
}:

buildNpmPackage rec {
  pname = "textlint-rule-terminology";
  version = "5.0.0";

  src = fetchFromGitHub {
    owner = "sapegin";
    repo = "textlint-rule-terminology";
    rev = "refs/tags/v${version}";
    hash = "sha256-/NuKZSugizP4b2LFNqPrTvoXNE4D1sytU2B7T40ZASQ=";
  };

  npmDepsHash = "sha256-FQr7E6ZSJxj/ide+3JJwc27x15L1bAIAlPnMl8hdQ8w=";

  dontNpmBuild = true;

  passthru.tests = textlint.testPackages {
    rule = textlint-rule-terminology;
    testFile = ./test.md;
  };

  meta = {
    description = "Textlint rule to check correct terms spelling";
    homepage = "https://github.com/sapegin/textlint-rule-terminology";
    changelog = "https://github.com/sapegin/textlint-rule-terminology/releases/tag/${src.rev}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ natsukium ];
  };
}
+1 −0
Original line number Diff line number Diff line
Javascript
+2 −0
Original line number Diff line number Diff line
@@ -13,6 +13,7 @@
  textlint-rule-max-comma,
  textlint-rule-preset-ja-technical-writing,
  textlint-rule-stop-words,
  textlint-rule-terminology,
  textlint-rule-write-good,
}:

@@ -106,6 +107,7 @@ buildNpmPackage rec {
        textlint-rule-max-comma
        textlint-rule-preset-ja-technical-writing
        textlint-rule-stop-words
        textlint-rule-terminology
        textlint-rule-write-good
      ]
    );
+1 −0
Original line number Diff line number Diff line
@@ -142,6 +142,7 @@ mapAliases {
  inherit (pkgs) textlint-rule-diacritics; # Added 2024-05-16
  inherit (pkgs) textlint-rule-max-comma; # Added 2024-05-15
  inherit (pkgs) textlint-rule-stop-words; # Added 2024-05-17
  inherit (pkgs) textlint-rule-terminology; # Added 2024-05-17
  inherit (pkgs) textlint-rule-write-good; # Added 2024-05-16
  thelounge = pkgs.thelounge; # Added 2023-05-22
  three = throw "three was removed because it was no longer needed"; # Added 2023-09-08
+0 −1
Original line number Diff line number Diff line
@@ -226,7 +226,6 @@
, "textlint-rule-en-max-word-count"
, "textlint-rule-no-start-duplicated-conjunction"
, "textlint-rule-period-in-list-item"
, "textlint-rule-terminology"
, "textlint-rule-unexpanded-acronym"
, "thelounge-plugin-closepms"
, "thelounge-plugin-giphy"
Loading