dotfiles
dotfiles copied to clipboard
ESLint in editor
Relevant: https://github.com/helix-editor/helix/issues/7079#issuecomment-1555922822
No luck with this (config borrowed from the relevant project's VSCode ESLint config):
diff --git a/home/editor.nix b/home/editor.nix
index 15b3d80..5e94eac 100644
--- a/home/editor.nix
+++ b/home/editor.nix
@@ -58,6 +58,15 @@
];
};
+ eslint = {
+ command = "vscode-eslint-language-server";
+ args = [ "--stdio" ];
+ config = {
+ overrideConfigFile = "eslint.config.mjs";
+ experimental.useFlatConfig = true;
+ };
+ };
+
efm = {
command = "efm-langserver";
config.documentFormatting = true;
@@ -77,6 +86,8 @@
name = "efm";
only-features = [ "format" ];
}
+
+ "eslint"
];
}
];