Unverified Commit c4db484f authored by natsukium's avatar natsukium
Browse files

textlint-rule-stop-words: repackage with buildNpmPackage

parent d47ef024
Loading
Loading
Loading
Loading
+36 −0
Original line number Diff line number Diff line
{
  lib,
  fetchFromGitHub,
  buildNpmPackage,
  textlint,
  textlint-rule-stop-words,
}:

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

  src = fetchFromGitHub {
    owner = "sapegin";
    repo = "textlint-rule-stop-words";
    rev = "refs/tags/v${version}";
    hash = "sha256-e9jTbDULOs0DwtT9UZp7k5+RR5Ab/x/sizIvs1MrmZs=";
  };

  npmDepsHash = "sha256-t9PPHFIiY4vw0ocw6nMuaeYuYWxbc1Pzo0R6bqIsHeI=";

  dontNpmBuild = true;

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

  meta = {
    description = "Textlint rule to find filler words, buzzwords and clichés";
    homepage = "https://github.com/sapegin/textlint-rule-stop-words";
    changelog = "https://github.com/sapegin/textlint-rule-stop-words/releases/tag/${src.rev}";
    license = lib.licenses.mit;
    maintainers = with lib.maintainers; [ natsukium ];
  };
}
+1 −0
Original line number Diff line number Diff line
and etc.
+2 −0
Original line number Diff line number Diff line
@@ -11,6 +11,7 @@
  textlint-rule-diacritics,
  textlint-rule-max-comma,
  textlint-rule-preset-ja-technical-writing,
  textlint-rule-stop-words,
  textlint-rule-write-good,
}:

@@ -102,6 +103,7 @@ buildNpmPackage rec {
        textlint-rule-diacritics
        textlint-rule-max-comma
        textlint-rule-preset-ja-technical-writing
        textlint-rule-stop-words
        textlint-rule-write-good
      ]
    );
+1 −0
Original line number Diff line number Diff line
@@ -140,6 +140,7 @@ mapAliases {
  inherit (pkgs) textlint-rule-alex; # Added 2024-05-16
  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-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
@@ -227,7 +227,6 @@
, "textlint-rule-en-max-word-count"
, "textlint-rule-no-start-duplicated-conjunction"
, "textlint-rule-period-in-list-item"
, "textlint-rule-stop-words"
, "textlint-rule-terminology"
, "textlint-rule-unexpanded-acronym"
, "thelounge-plugin-closepms"
Loading