feat: replace eslint with eslint_d for better performance

This commit is contained in:
n3oney 2023-05-12 20:30:37 +02:00 committed by NotAShelf
parent cf59c602c7
commit b015c0aa0e
No known key found for this signature in database
GPG key ID: F0D14CCB5ED5AA22

View file

@ -39,15 +39,15 @@ with builtins; let
}; };
# TODO: specify packages # TODO: specify packages
defaultDiagnostics = ["eslint"]; defaultDiagnostics = ["eslint_d"];
diagnostics = { diagnostics = {
eslint = { eslint_d = {
package = pkgs.nodePackages.eslint; package = pkgs.nodePackages.eslint_d;
nullConfig = pkg: '' nullConfig = pkg: ''
table.insert( table.insert(
ls_sources, ls_sources,
null_ls.builtins.diagnostics.eslint.with({ null_ls.builtins.diagnostics.eslint_d.with({
command = "${pkg}/bin/eslint", command = "${lib.getExe pkg}",
}) })
) )
''; '';