-
Notifications
You must be signed in to change notification settings - Fork 601
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
Turn on noImplicitAny
and strictPropertyInitialization
for fast-router
#5341
Comments
Hi @chrisdholt, |
Yes, the goal for this would be to turn those settings on and resolve the issues related to them for the |
Would u mind if I try to resolve this issue? |
@chrisdholt how should I reproduce these errors again? Did u find it in testing phase or any other case? |
If I recall, the issue should repro by turning on the settings in tsconfig and running the build and tests steps. |
During testing, all test cases are running except for |
No the issue is you would see errors thrown relating to instances of no-implicit-any and several cases where strictPropertyInitialization isn’t being done as expected. Not at my computer but I can try to give an example tomorrow (maybe this evening but will be afk for a bit). |
Sure. |
@chrisdholt can you attach any example of the errors as I still cannot find them after turning on those parameters. |
@chrisdholt Are we noticing these type of errors? |
That looks like what I would reproduce - those appear to be |
So now we're sure these are the errors to be fixed right? |
Yes, we want to fix the Probably best to get @EisenbergEffect to confirm, but I think a PR here for stricter typing would be an improvement, it'll likely just take some time to review depending on what all gets flagged as you move through fixing these. |
The router is still in a bit of a volatile stage so I haven't added all the typings. It can be easier to evolve something at first without that, adding it later once the code has matured. That said, I'd definitely take a PR to improve this now. |
Hey, is there anyone working on this issue? I'd like to give a try. @EisenbergEffect @chrisdholt |
As part of #5303 we turned off @typescript-eslint/typedef globally as it was overwritten across multiple packages. As part of that, we turned on
noImplicitAny
andstrictPropertyInitialization
for all packages. Turning this on revealed several issues related to both tsconfig settings infast-router
and so it was turned off explicitly for that package. The errors should be fixed and addressed as part of this issue and the code should be tested to ensure that there are no breaks or side effects of the change. This issue exists to track turning that back on and resolving the errors.The text was updated successfully, but these errors were encountered: