neoclide / coc-eslint

Eslint extension for coc.nvim
MIT License
396 stars 25 forks source link

Not working as expected #119

Closed abienz closed 2 years ago

abienz commented 3 years ago

I have a simple JS file and I'm expecting to see warnings/errors as I'm working/saving but am not seeing any feedback.

I'm running on nvim with coc.nvim and coc-eslint installed (via :CocInstall coc-eslint).

Checking the output I can see that ESlint is running on nodejs 14.x.x, so it appears to be installed and working correctly through nvim.

my JS file is as follows...

index.js

"strict mode"

undefined = 4;
Infinity = 5;

I'm expecting to see type errors regarding these two statements, am I misunderstanding how to use coc-eslint?

chemzqm commented 2 years ago

coc-eslint has bug with files not on the disk, you need save the file and restart eslint server.