VSCodeTriageBot / testissues

Clone of the vscode issue stream.
43 stars 23 forks source link

A way to disable specific Typescript rules #48550

Open VSCodeTriageBot opened 3 months ago

VSCodeTriageBot commented 3 months ago

image

See the screenshot: currently, when using ESLint in conjunction with VScode's built-in ESLint plugin, error messages for the same error are displayed multiple times (see marker 1 and 2 in the screenshot).

I figure that there is a setting to disable Typescript validation as a whole but there doesn't seem to be a way to disable a specific rule only.

As you see in the screenshot, ESlint handles the error already (via ESlint's Typescript plugin) and the default rule can be disabled like so:

rules: {
  'no-unused-vars': 'off', 
  '-typescript-eslint/no-unused-vars': 'error',
}

VS Code does not seem to pick this up. I would advocate to implement a feature to either (a) pick it up or (b) add an option to disable specific Typescript rules for the internal Typescript validator.