-
-
Notifications
You must be signed in to change notification settings - Fork 2.8k
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
[Fix] @typescript-eslint
v6, v7, v8 use typeArguments with fallback to typeParameters
#3629
[Fix] @typescript-eslint
v6, v7, v8 use typeArguments with fallback to typeParameters
#3629
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #3629 +/- ##
==========================================
- Coverage 97.62% 94.42% -3.21%
==========================================
Files 132 132
Lines 9692 9703 +11
Branches 3520 3522 +2
==========================================
- Hits 9462 9162 -300
- Misses 230 541 +311 ☔ View full report in Codecov by Sentry. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems good, altho there's an uncovered line.
Hopefully this is fixed and merged soon. |
@HenryBrown0 any update on those smaller PRs? |
Sorry I got side tracked, I'll try getting some tests written in the next few days |
0f45d97
to
586b162
Compare
Can we add some tests that would have failed without these typeArguments checks? That may require adding tests that run on typescript-eslint v6. |
…rst-prop-new-line`, `jsx-props-no-multi-spaces`, `propTypes`: use type args
|
New and removed dependencies detected. Learn more about Socket for GitHub ↗︎
🚮 Removed packages: npm/@typescript-eslint/[email protected]) |
Fair, I'll take that (and rebase this) assuming tests pass :-) thanks! |
looking forward to this! |
2929087
to
f5bd822
Compare
@HenryBrown0 unfortunately a number of tests are failing. any idea why? |
Unit tests are failing on master for me, has a dependency changed? It appears only minor version of Node.js 6 are failing, e.g. 18.6.8 and 19.6.8. I suspect this is a red herring as the matrix build reports using different node versions;
|
Thanks, in that case I'll check out master and report back. |
@HenryBrown0 tests seem to be passing on master https://github.com/jsx-eslint/eslint-plugin-react/actions (i checked on my fork before pushing to this repo, so i expect these to pass). |
- only install peer dependencies with legacy mode when testing @typescript-eslint/parser < v6
Follows the guide from
@typescript-eslint
to upgrade tov6
, by adding a small utility functiongetTypeArguments
which returns thetypeArguments
or falls back totypeParameters
.Closes #3602