I'm using Vim with the syntastic plugin and eslint.
Here's what I have in my .vimrc:
I installed eslint with:
npm install eslint -g
I'm running Linux Mint 17
How do I get warnings to appear?
It turns out the issue here was that the "warnings" I thought I had in my file were not actually warnings. When I put an actual warning in my file it showed up correctly.
Some advice I learned though was to first run the file on the command-line directly using eslint similar to this:
Then compare those results to what you see in Vim.
Another tip is that you can change rules on the fly with comment syntax like this:
I really don't know if it will help you, but I will put it here. I had a similar problem but in my case it was related to the version of syntastic, so a simple
git pull solved it. My vim configuration is somewhat canonical, so I will share that:
When you open your file that contains some mistakes, it should show that into the error window.
©2020 All rights reserved.