0👍
You need to set your default formatter in VS Code. Here is how to do it:
- Install the ESLint extension
- Go to settings and search for "Default formatter"
- Select ESLint
VS Code then automatically reads your ESLint configuration from your project and formats the code accordingly
Source:stackexchange.com