coc-eslint: Errors not showing up

I got the coc-nvim plugin installed, as well as coc-eslint installed and pointed at the correct node_modules directory.

Coc logs suggest that eslint started just fine.

But Whatever I do, I cannot get coc to highlight an error. It works well for other languages. I have tried writing the file, closing it and reopening it, switching modes, etc.

But if I deliberately type gibberish it will not highlight as an error. Am I missing something in my config?

About this issue

  • Original URL
  • State: closed
  • Created 5 years ago
  • Comments: 18 (7 by maintainers)

Most upvoted comments

Fixed on lastest coc.nvim.

Checkout the last comment, it was fixed on coc.nvim, you need to upgrade coc.

I can confirm this is still an issue. I intentionally removed a semi colon from an expression (see image below) and my .eslintrc.json file always requires semicolons.

Screen Shot 2019-11-04 at 10 56 43 PM

Here’s my .eslintrc.json file: Screen Shot 2019-11-04 at 10 59 42 PM

Here’s the same file opened in VSCode, which reports the error: Screen Shot 2019-11-04 at 11 22 46 PM

Any way to make it global?

If you have a configuration file in your home directory (generally ~/), ESLint uses it only if ESLint cannot find any other configuration file.