-
-
Notifications
You must be signed in to change notification settings - Fork 627
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
TypeScript ESLint crash after 22.4.4 when passing TFunction #1901
Comments
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Not stale |
Related to #1883 |
According to this comment the issue can only be fixed by reducing the complexity of the recursive types associated with TFunction. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
not stale |
@CreativeTechGuy yup, we're also stuck on v22.4.3 until this gets fixed. |
@adrai can you turn off the stale bot? |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. |
Not Stale. |
Please try with i18next v23.0.1 and react-i18next v13.0.0 |
@adrai It's looking MUCH better. I am not having any issues and it's very responsive. It even responds to changes in the json file much faster than previously! So overall a very great change. Thank you. Edit: I'm using TypeScript 4.9.5 in case that is relevant. I do have a complaint (nit) regarding the change from |
Hey @CreativeTechGuy, I'm glad to hear that! The defaults values should be available in the next patch version: 18ce83f |
Since it's resolved, I'll close this issue |
fyi: released in v23.1.0 |
💥 Regression Report
When using @typescript-eslint/no-misused-promises to lint a TypeScript project with i18next
CustomTypeOptions
set, the linter will crash when attempting to analyze the function arguments of a function which is passedTFunction
type. (This is a continuation of #1891 but now with a minimal reproduction.)Error received:
Last working version
Worked up to version: 22.4.3
Stopped working in version: 22.4.4
To Reproduce
Very minimal repo here: https://github.com/CreativeTechGuy/i18next-eslint-repro
npm ci
to install dependenciesnpm run lint
to cause the crash (it'll stall for a while but if you leave it long enough it'll crash with an error similar to above)Expected behavior
The code can be linted without issue.
Your Environment
The text was updated successfully, but these errors were encountered: