-
Notifications
You must be signed in to change notification settings - Fork 887
extends
only works when loading config from file, not passing in as json object
#1174
Comments
When you pass in a configuration as an object, TSLint has no way to determine "where it comes from." In other words, what is the relative path "my-other-tslint.json" actually relative to? So for this reason it doesn't do anything with the However, I suppose we could always resolve it relative to the process's current working directory? In your case, that's the behavior that would make things work as expected for you, right? I think #1172 especially and #1168 also will put us in a better position to do this, once they merge we'll take care of this! |
That sounds reasonable. Supporting absolute path would also be good. Relative paths could be confusing some things, it would be nice to be able to resolve them all before passing them into tslint. Thanks, |
Has any progress been made on this since the last post? |
@datatypevoid nope, no progress. Accepting PRs though! 😊 |
☠️ TSLint's time has come! ☠️ TSLint is no longer accepting most feature requests per #4534. See typescript-eslint.io for the new, shiny way to lint your TypeScript code with ESLint. ✨ It was a pleasure open sourcing with you all! |
🤖 Beep boop! 👉 TSLint is deprecated 👈 (#4534) and you should switch to typescript-eslint! 🤖 🔒 This issue is being locked to prevent further unnecessary discussions. Thank you! 👋 |
Bug Report
3.8.1
1.8.2
with
tslint.json
as json object:Actual behavior
ignores rules in
my-other-tslint.json
Expected behavior
applies rules in
my-other-tslint.json
The text was updated successfully, but these errors were encountered: