ESLint didnt work on .vue files


I've tried to get it work ESLint with Vue single files, but i can't get any result of it.
This is a problem with WebStorm or is my configuration?

1
3 comments

Does it work in terminal? What WebStorm version do you use?

0
Avatar
Permanently deleted user

WebStorm 2017.3.3

This is an example of ESLint working with js files

This is an example with a .vue file

An this is another example running ESLint from the console with the same vue file

0
Avatar
Permanently deleted user

Yes, was a problem with my .eslintrc.json configuration file. I found the solution following this comment

https://youtrack.jetbrains.com/issue/WEB-28312#comment=27-2372958

Just for information, I had configurated vue only on "extends", and it needs to be on "plugins" too to get it work it with the IDE. Perhaps could be useful mention this on the docs.

Anyways, thanks!

2

Please sign in to leave a comment.