microsoft / vscode-ts-tslint

TSLint integration for VS Code that runs linting as TypeScript plugin — ❗This extension has been DEPRECATED in favor of https://github.com/microsoft/vscode-typescript-tslint-plugin
36 stars 9 forks source link

Add support for tslint.exclude #8

Open Torhal opened 6 years ago

Torhal commented 6 years ago

Currently, this setting only seems to be available in the other plugin. VSCode was complaining that it was an unknown setting until I disabled the TSLint (vnext) plugin and enabled the "regular" TSLint plugin, after which the files/directories I'd specified were, indeed, ignored. Losing the more advanced linting options isn't a worthwhile tradeoff for me, though.

egamma commented 6 years ago

This is unfortunately correct there are some feature gaps between vscode-tslint and this extension which is based on the TypeScript server plugin provided by the tslint-language-service module (which is a fork of the vscode-tslint extension)… Something that needs to be reconciled in the near future.

Just curious since when are you using the TSLint (vnext) extension? I´ve published a new version yesterday, did the older version work for you?

Torhal commented 6 years ago

I've been using it for roughly a year, but only within the past few days have I looked into trying to exclude specific files/directories from linting due to some generated DB migrations I'd rather not have to edit to make VSCode stop complaining. The node_modules linting has always been an aggravation, but since it isn't my own code and I only jump in to look at definitions from time to time, it wasn't critical.

I understand the feature gaps, and prefer the power of vnext, so I'll just deal with it for now.

Thanks!