-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Using Typescript 5.0's array extends in tsconfig causes an error while linting #2751
Comments
tsconfig-paths doesn't support this yet, and even if they added that support, they'd need to backport it to v3 for us to be able to use it. |
See dividab/tsconfig-paths#245, which was released in
I'm unable to find what the breaking changes are in v4, so I don't know how much of an issue it would be to upgrade in this package. |
Perhaps:
If this is the only breaking change in |
@WoodyWoodsta its a nonstarter, see #2447, so hopefully they go with option 1. |
Ouch - not to bring that discussion over here, but maintaining Node v4 support is not something I've come across before. That is your decision though, but I don't think that |
Nobody has any obligation to do anything :-) i think their v4 platform drop was a mistake, and another park forward is for v4 to restore node 4 support (which it could do in a semver minor). If tsconfig-paths maintainers would accept a PR restoring that support, I’d be happy to author it, so this plugin could update to v4. |
@ljharb Open an issue then. |
Yep, that’s indeed the kind of entitlement and laziness that explains why forks aren’t sustainable. |
I'm not sure I understand? |
It’s something you want, and I’ve given you a path to getting what you want - and instead of you just filing the issue, you said “psh, you do it”. |
I think that's the misunderstanding. It's the decision you've made, as is your full right, but still your decision, not mine. You have a PR open with 90+ comments, 25 participants all of whom are not in support of your proposition. So no, I don't think I'm practicing any entitlement or laziness. Rather, I've spent a fair amount of time attempting to guide you towards a different perspective which, as unbelievable as it appears to you, is not an unreasonable perspective and is in the interest of the community you lead. 🤷 I'm not really interested in putting any further effort into this sort of a cause. My organisation will see if |
Good luck to you. |
Adding this to my "overrides":{
"tsconfig-paths": "^4.0.0"
} |
For yarn it would be "resolutions":{
"tsconfig-paths": "^4.0.0"
} |
Using overrides/resolutions is a perfectly reasonable approach, assuming the breaking changes don't affect our usage of the package. |
Typescript 5.0 now supports combining TSConfigs using array syntax in
extends
Error log:
This also effects
import/namespace
,import/named
,import/default
,import/no-named-as-default
, andimport/no-named-as-default-member
.The text was updated successfully, but these errors were encountered: