(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.
Latest comments (17)
thanks man
Holly s*** it worked...
github.com/mdx-js/eslint-mdx/issue...
tks a lot man, saved my life
Life saver! π§‘
I am getting End of file expected. error on pasting below in settings.json
"eslint.validate":[
{
"language":"vue",
"autoFix":true
},
{
"language":"html",
"autoFix":true
},
{
"language":"javascript",
"autoFix":true
},
{
"language":"typescript",
"autoFix":true
}
]
The Dollyrots' "Because I'm Awesome" was definitely inspired by you. Thanks.
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: falseshould work as well.Also, my
.eslintignore, for extra fun!this helped me too, tks!
Nice hint bro! Saved my life!
should the settings be added to
./vscode/settings.jsonor.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.
Thank you! This is so helpful!