eslint: 9.20.0 -> 9.30.1; add passthru.updateScript (#422623)

This commit is contained in:
Wolfgang Walther
2025-07-06 14:29:37 +00:00
committed by GitHub
2 changed files with 3088 additions and 8846 deletions
+3080 -8843
View File
File diff suppressed because it is too large Load Diff
+8 -3
View File
@@ -2,17 +2,18 @@
lib,
buildNpmPackage,
fetchFromGitHub,
nix-update-script,
stdenv,
}:
buildNpmPackage rec {
pname = "eslint";
version = "9.20.0";
version = "9.30.1";
src = fetchFromGitHub {
owner = "eslint";
repo = "eslint";
tag = "v${version}";
hash = "sha256-ahERh5Io2J/Uz9fgY875ldPtzjiasqxZ0ppINwYNoB4=";
hash = "sha256-IMML65KsmFLdTniciHWiw5ao0hSwILbHvz/Zx72+Mi8=";
};
# NOTE: Generating lock-file
@@ -24,12 +25,16 @@ buildNpmPackage rec {
cp ${./package-lock.json} package-lock.json
'';
npmDepsHash = "sha256-F3EUANBvniczR7QxNfo1LlksYPxXt16uqJDFzN6u64Y=";
npmDepsHash = "sha256-EurssIJmb6g7CmsYkUqtEdyDfvCs4Sc3VO6/4jTeP5Y=";
npmInstallFlags = [ "--omit=dev" ];
dontNpmBuild = true;
dontNpmPrune = true;
passthru.updateScript = nix-update-script {
extraArgs = [ "--generate-lockfile" ];
};
meta = {
description = "Find and fix problems in your JavaScript code";
homepage = "https://eslint.org";