I try to use code action to solve the eslint rule react-hooks/exhaustive-deps
, but the nvim-lspconfig show message No code action found
. I don’t know if I make any mistake when integrate eslint with nvim-lspconfig. I also cannot use code_action to disable the eslint like what I do in VSCode
How did you integrate lspconfig with eslint?
It doesn’t come builtin AFAIK, so please provide more details on how you did that, maybe the code that you added to your vim config would help
You can use this plugin to get eslint and code actions working in TS and JS files.
It’s working well for me, you can see my typescipt/javascript lsp config here.
Note that you will need eslint_d or eslint installed globally on your system.
Hope that helps.
1 Like