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

TSLint trying to lint any JS file #29

Closed mauroavidbots closed 5 years ago

mauroavidbots commented 5 years ago

Hello all!

After I installed the vscode-typescript-tslint-plugin, I am having this problem where all the .js files starts with the following error:

Failed to load the TSLint library for the document path/to/javascript/file.js
To use TSLint for single file install tslint globally using 'npm install -g tslint'.
TSLint has a peer dependency on `typescript`, make sure that `typescript` is installed as well.
You need to reopen VS Code after installing tslint. [1]

This happens to all .js files, including in projects without tslint.json.

I've already checked the tslint.jsEnable and it is set to false.

I'm currently using the vscode-typescript-tslint-plugin@0.1.1 with vscode@1.29.1. I have the tslint installed in the workspace, but not globally.

Thanks!

mjbvz commented 5 years ago

Duplicate of #26