Unverified Commit a4ba2913 authored by Michael Daniels's avatar Michael Daniels
Browse files

eslint: add passthru.updateScript

parent 54a5b84c
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -2,6 +2,7 @@
  lib,
  buildNpmPackage,
  fetchFromGitHub,
  nix-update-script,
  stdenv,
}:
buildNpmPackage rec {
@@ -30,6 +31,10 @@ buildNpmPackage rec {
  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";