Closed AndrewCraswell closed 4 years ago
Hmmm... It looks strange but I can't reproduce this error on my PC when I install mentioned package versions and copy tslint.json
.
As I can see - you are using global TSLint installation this might have some impact. Does error appear if you use npx tslint ...
or ./node_modules/.bin/tslint
?
Are there any specifics in folder layout (where you run command and where node_modules
are located)?
Are there any warnings with the same message in your IDE if you configured TSLint there?
Interesting, uninstalling the global package then running locally in the project worked fine. Anyways it's not a problem for me because I should be running TSLint from the project's node_modules
anyway. You can close this.
Bug Report
tslint-microsoft-contrib
version:6.2.0
5.19.0
3.5.3
with
tslint.json
configuration:Actual behavior
Not sure how long ago this started because I just realized that my linting was failing silently for some time... but if I run
tslint
from the command line I get the following error:However, if I change
tslint-microsoft-contrib/recommended
totslint-microsoft-contrib/recommended.json
it works properly. If anyone has encountered this, some suggestions would be very helpful.I guess this just feels more like a module resolution issue to me, and I'm less familiar with how
tslint
resolves packages but I had assumed it should match thenode
resolution pattern, meaning the.json
should be optional... If it seems this bug needs to be filed somewhere else I can do that.Expected behavior
Linting should execute and provide results.