Skip to content

Latest commit

 

History

History
55 lines (37 loc) · 1.06 KB

vscode-eslint.md

File metadata and controls

55 lines (37 loc) · 1.06 KB

ESlint vscode plugin configuration

The purpose of the eslint vscode plugin is integration eslint with vscode environment.

Contents

Prerequisites

  • ➡ eslint - linting and formatting indexed files before commit.

Setup

  • 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/*/" }
      ]
      ...
    }

Usage

  • Automatic linting file with eslint on save.

License

MIT © Sergey Muravjev


⬅ Back