Thanks! But there is still an issue with it :( It seems like a conflict between eslint(prettier/prettier) and eslint(@typescript-eslint/indent). I also feel like eslint is running twice or something. For now I have set:
Still didn't seem to fix the issue! Although I also ran into this last week, which I have not been able to solve. Something must be wrong with my setup somewhere haha. Check it out:
You need to run prettier through ESLint, otherwise you'll get these kind of conflicts.
It seems that vscode is running prettier when formatting on save, rather than eslint! I will look into it on Monday when I back with my laptop :P
You need to make sure to turn off the formatOnSave in VSCode for your JavaScript and Typescript files. Here are the settings:
Then to make sure you get ESLint to fix problems on save, make sure you have the following settings in VS Code:
Thanks! But there is still an issue with it :( It seems like a conflict between
eslint(prettier/prettier)
andeslint(@typescript-eslint/indent)
. I also feel like eslint is running twice or something. For now I have set:Here's my full eslint config file:
VSCode User settings: hastebin.com/jucodoheqi.json
VSCode Workspace settings: hastebin.com/anenanupuh.json
I think your extends array should be the following (I've added comments explaining things):
Still didn't seem to fix the issue! Although I also ran into this last week, which I have not been able to solve. Something must be wrong with my setup somewhere haha. Check it out:
Prettier wants this:
But typescript fails to compile because of the missing comma after
as?: AsTags
as it wantsas?: AsTags,
but prettier removes it ._.Thanks for providing the snippets though. If you can shed any light on this one I would appreciate it a ton :3