Closed JounQin closed 5 years ago
@JounQin - I think this error message is not fully accurate. I got the same error in my project, and I fixed it via npm install -D tslint
in my project folder (not globally) and the error went away.
Duplicate of #26
@mjbvz Are you sure? I'm facing a lot of warnings from .d.ts
in node_modules
directory...
Different error, it should not lint d.ts
files by default: https://github.com/Microsoft/typescript-tslint-plugin/issues/41
What about .ts
source codes in node_modules
? It should only not lint all .ts
files in node_modules
. And also user customed .d.ts
files should also be linted.
Beside, why not read it from exclude
of tsconfig.json
or linterOptions.exclude
of tslint.json
?
@JounQin I've just opened #40.
My
tsconfig.json
:And I've uninstalled
vscode-tslint
plugin and tried to installtypescript
andtslint
globally, but it still emits errors.