Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ESLint in editor #406

Closed
samhh opened this issue Dec 11, 2023 · 1 comment
Closed

ESLint in editor #406

samhh opened this issue Dec 11, 2023 · 1 comment

Comments

@samhh
Copy link
Owner

samhh commented Dec 11, 2023

Relevant: helix-editor/helix#7079 (comment)

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"
           ];
         }
       ];
@samhh samhh added the editor label Dec 11, 2023
@samhh
Copy link
Owner Author

samhh commented Mar 30, 2024

9cda00f

@samhh samhh closed this as completed Mar 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant