eslint language server not working? Check this. vscode-eslint-language-server with flat config #12805
Unanswered
samankittani
asked this question in
General
Replies: 1 comment 2 replies
-
Update for everyone: Since a few releases ago, ESL should work out-of-the-box: Lines 221 to 241 in e7ac2fc However, for some reason, it randomly decides to work on my install. Relevant log (timestamp removed):
|
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I spent a great deal of time tracking down why my installed vscode-eslint-language-server from vscode-langservers-[email protected] was not working, including patching using the to-be-merged PR. I learned some new things I did not know about helix, and I will use this opportunity to help someone get out of the rabbit hole early.
Make sure your language.toml file includes an eslint lsp config with the bare minimums discussed in this discussion:
I learned that I need to have the bare minimum config for the lsp to work. I didn't experiment with what exactly is required. I also learned that I can look at the vscode eslint settings to find all the configuration options available for this LSP. Importantly, I learned that I needed the useFlatConfig flag in the experimental object in order for the flat config to be registered. This may seem obvious to some, but I hope this helps someone.
Also, make sure you configure the lsp command and apply it to a language:
Beta Was this translation helpful? Give feedback.
All reactions