-
Notifications
You must be signed in to change notification settings - Fork 889
Fails when upgrading to 3.7.0 with an error message about extends #1083
Comments
I can confirm this from my side too. I tried using npm@3 and npm@2, the bug happens with both. Downgrading TSLint to 3.6.0 worked for me. |
Sounds like a bug 😢. I'll look into it sometime in the next few hours! |
@vertti @staltz So this is actually the intended behavior, sort of. What happened is we introduced a way so that you could load configurations that were in an NPM package. This was mainly for the new and optional
What's happening here is that the Nonetheless, this clearly is unexpected behavior to users. I see two solutions:
|
Shouldn't this be a breaking change version update then? |
agree with @staltz that it's not the expected, that an upgrade breaks my working version in perspective of backwards compatibility. but if you don't want to make a breaking change version update i'd like your idea of improving the error message, so i know as a user what i have to change in my configuration to make it work again. |
TSLint 3.7.0 has only been published for less than a day, so I'm happy to revert this semi-unintended breaking change (via option 2 described above). I don't think this will mess up anyone's workflow so shouldn't be a problem. I was more worried about the |
Filed #1084 to fix this |
This should be fixed with version |
I'm still having issues with 3.7.1, see https://github.com/Microsoft/vscode-tslint/issues/41 Edit: setting |
@timbru31 Fixed version is published (v3.7.2). Let me know if you run into any further problems |
Bug Report
3.7.0
1.8.9
Running
We run tslint from make file. Everything works fine with any tslint previous to 3.7.0.
I have not added anything related to the new
extends
feature, so my tslint.json only contains a bigrules
block.Actual behavior
tslint -c tslint.json
find src/ts -name *.ts | xargs
/Users/vertti/.npm-packages/lib/node_modules/tslint/lib/configuration.js:112
throw new Error(("Invalid "extends" configuration value - could not require "" + relativeFilePath + "". ") +
^
Error: Invalid "extends" configuration value - could not require "tslint.json". Review the Node lookup algorithm (https://nodejs.org/api/modules.html#modules_all_together) for the approximate method TSLint uses to find the referenced configuration file.
Expected behavior
I'm expecting normal linting.
The text was updated successfully, but these errors were encountered: