Skip to content

Latest commit

 

History

History
51 lines (35 loc) · 997 Bytes

vscode-eslint.md

File metadata and controls

51 lines (35 loc) · 997 Bytes

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.

⬅ Back