Merge pull request #78 from n3oney/feature/eslint_d

replace eslint with eslint_d
This commit is contained in:
NotAShelf 2023-05-14 20:00:32 +03:00 committed by GitHub
commit 1b4e2bb624
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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}",
})
)
'';