ecosse3 / nvim

A non-minimal Neovim config built to work most efficiently with Frontend Development
GNU General Public License v3.0
1.19k stars 109 forks source link

How to cancel the diagnosis of eslint? #130

Closed oldqin97 closed 1 year ago

oldqin97 commented 1 year ago

How to turn off this diagnosis when I don't want to use eslint and the page does not have an eslintrc file configured?

image
ecosse3 commented 1 year ago

Please remove the setup function of eslint from lua/lsp/setup.lua.

I may add a check if eslint configuration file is found in project root and then enable the LSP, but I need more time as I am busy now. Maybe there is such an option in ESLint LSP documentation.