microsoft / vscode-typescript-tslint-plugin

VS Code extension that provides TSLint support using the typescript-tslint-plugin
https://marketplace.visualstudio.com/items?itemName=ms-vscode.vscode-typescript-tslint-plugin
MIT License
188 stars 34 forks source link

Linting node_modules #19

Closed deftomat closed 5 years ago

deftomat commented 5 years ago

Plugin is showing errors/warnings in node_modules.

It's quite common to navigate to source of a lib, which you are using. However, if code doesn't match your TSLint rules, then VSCode report it as error/warning.

image

deftomat commented 5 years ago

Closing as the solution is to use linterOptions.exclude in TSLint config. https://palantir.github.io/tslint/usage/configuration/