(check out my blog)
Hi Raffaele,
this a note from your old self.
I know that ESLint is not working in VS Code.
You have already installed all the plugins, probably reinstalled VSCode, checked your VSCode Settings and double-checked your .eslintrc several times and perhaps you are sitting in a corner thinking about quitting your job.
I know how you feel, you have already been there but you won't die on this hill.
Just open VSCode Settings (./vscode/settings.json) and add this:
"eslint.validate":[
{
"language":"vue",
"autoFix":true
},
{
"language":"html",
"autoFix":true
},
{
"language":"javascript",
"autoFix":true
},
{
"language":"typescript",
"autoFix":true
}
]
Restart VSCode and enjoy.
Sincerely yours,
You.
Top comments (17)
I got this warning,
Auto Fix is enabled by default. Use the single string form.
So, I changed it to,
However, according to github.com/Microsoft/vscode-eslint..., mixed form or
autofix: false
should work as well.Also, my
.eslintignore
, for extra fun!this helped me too, tks!
Nice one, this hint is going the right direction.
I'd just add check your user settings.json before blindly sticking the same
eslint.validate
JSON config in each workspace individually.should the settings be added to
./vscode/settings.json
or.vscode/settings.json
? is it possible that this is an error in your post because it only worked for me with the latter.nice post though.
tks a lot man, saved my life
Future not to me: install the ESLint plugin too. :-)
Life saver! 🧡
Thank you so so much
The Dollyrots' "Because I'm Awesome" was definitely inspired by you. Thanks.
Nice hint bro! Saved my life!
Nice tip