coc-tsserver is not detecting undefined variables

285 views Asked by At

I am using coc and tsserver in my neovim editor, coc-tsserver is providing excellent autocomplete suggestions and warnings as in vs code but it is failing to detect undefined variables. enter image description here

Can someone help me in configuring this .

1

There are 1 answers

0
Abd On BEST ANSWER

Install coc-eslint with :CocInstall coc-eslint and If you already have an eslint config file in your working directory you are ready to go but make sure you also have eslint npm package installed.

If you don't have the eslint config file you can create one by :CocCommand eslint.createConfig