Install the VS Code extension:
- Open VS Code
- Ctrl + Shift + X
- Search for "ESLint"
- Click the blue "Install" button
In your project, install the dependencies
npm i -D eslint eslint-config-prettier eslint-plugin-prettier prettier
Create an .eslintrc.cjs
with the contents below.