The purpose of the eslint vscode plugin
is integration eslint with vscode environment.
- ➡ eslint - linting and formatting indexed files before commit.
-
Install vs code
eslint
plugin by using Quick Open (Ctrl
+P
) and running the following command:ext install dbaeumer.vscode-eslint
-
Configure vs code
eslint
plugin, by adding following settings:// .vscode/settings.json { ... "eslint.enable": true, "eslint.alwaysShowStatus": true, "eslint.debug": false, "eslint.workingDirectories": [ // Monorepo directories { "pattern": "./apps/*/" }, { "pattern": "./packages/*/" } ] ... }
- Automatic linting file with
eslint
on save.