From b015c0aa0e246285c928c58cf12b5906bd0edec5 Mon Sep 17 00:00:00 2001 From: n3oney Date: Fri, 12 May 2023 20:30:37 +0200 Subject: [PATCH] feat: replace eslint with eslint_d for better performance --- modules/languages/ts.nix | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/modules/languages/ts.nix b/modules/languages/ts.nix index ecb8f026..940f8d9f 100644 --- a/modules/languages/ts.nix +++ b/modules/languages/ts.nix @@ -39,15 +39,15 @@ with builtins; let }; # TODO: specify packages - defaultDiagnostics = ["eslint"]; + defaultDiagnostics = ["eslint_d"]; diagnostics = { - eslint = { - package = pkgs.nodePackages.eslint; + eslint_d = { + package = pkgs.nodePackages.eslint_d; nullConfig = pkg: '' table.insert( ls_sources, - null_ls.builtins.diagnostics.eslint.with({ - command = "${pkg}/bin/eslint", + null_ls.builtins.diagnostics.eslint_d.with({ + command = "${lib.getExe pkg}", }) ) '';