Skip to content

lvjiaxuan/vscode-eslint-disable

Repository files navigation

vscode-eslint-disable


Use hotkeys to insert the corresponding ESLint disabling rules comment.

Visual Studio Marketplace Version Visual Studio Marketplace Installs GitHub Repo stars

Usage

  1. Select a single line or multiple lines that have rule problems from the ESLint extension's IntelliSense, and you can either disable these rules for selected lines by ctrl + alt + d or for the entire file by ctrl + alt + e.
  2. Disable all rule problems for the entrie file by ctrl + alt + a.

Tip

It doesn't always have to select characters, even just only a cursor focus can works. See the preview below.

Preview

For single line.

single

For multiple lines, you can press ctrl + d to select another pair of rules on the other side.

multiple