--fix doesn't fix the errors using eslint --fix doesn't fix the errors using eslint javascript javascript

--fix doesn't fix the errors using eslint


To use --fix option, you need to run eslint directly.

Try this

./node_modules/.bin/eslint src --fix

On Windows:

.\node_modules\.bin\eslint src\** --fix


Run the below command in the new terminal:

./node_modules/.bin/eslint --fix . --ext .js,.vue src


The format should be:

./node_modules/.bin/eslint --fix path/to/file.js

See this thread (and aravind1078's answer) for more background.