Marek Urbanowicz Marek Urbanowicz - 11 months ago 107
Javascript Question

Eslint and VueJS files. Throwing errors but not fixing them

I have a strange issue with Eslint.
It is throwing errors on Vue files, but not fixing any of them.

I have checked all config etc.

It is working for js files, but not working for Vue files.
It is really strange that it is throwing errors on them, but not fixing them. It is all about easy fixes like semicolons etc (just moved to ES6 and Eslint so need to clean up code) so it easily fixing them normally.

What can be the cause?

Answer Source

I found why. Basically, ESLINT is not able to fix errors when using any loaders. In my case it is vue loader. They are still working on that in ESLINT team to find the way to handle fix with loaders.