microsoft / vscode-eslint

VSCode extension to integrate eslint into VSCode
MIT License
1.73k stars 333 forks source link

VS Code ESLint does not format white spaces #1134

Closed michalkolek closed 3 years ago

michalkolek commented 3 years ago

Hi,

I started fresh with a clean set of extensions and settings, but I can't get ESLint extension to format white spaces.

Gif: eslint

Repo to reproduce: https://github.com/nichalko/eslint-vscode-issue

dbaeumer commented 3 years ago

@nichalko did you configure eslint as the formatter to use? I check the repository and it has not .vscode/settings.json file.

If yes, does the validation / fixing happen correctly when you use eslint in the terminal using the --fix option?.

michalkolek commented 3 years ago

@dbaeumer I did configure it. Please see latest commit. Also please see below picture, when --fix option does not pick up incorrect spacing.

Also, both vsocde and your extension are latest versions.

Capture

dbaeumer commented 3 years ago

If running eslint in the terminal with --fx does not pick up incorrect spacing as well then this is a configuration issue with ESLint itself and has nothing to do with the extension. Can you please try to make eslint in the terminal work as expected and when it then doesn't work in the ESLint extension come back here. You might consider asking questions on stack overflow in the ESLint group.