Eslint rule `@typescript-eslint/no-unsafe-assignment` triggers on `useParams` or `useSearch`
I've recently tried to update my code all the way up to the latest version and noticed a few eslint issues here and there in my codebase.
I could trace it down to a change between
I get the following error:
We have a structure, where all our URLs start with
Another example where we get this is:
But we are quite confident those two search-params exist, because our root component is defined as:
The type we see on hover in our editor are not
Any help would be appreciated!
I could trace it down to a change between
1.132.0-alpha.4 and 1.132.0-alpha.8.I get the following error:
Unsafe assignment of anon this line of code:anyvalue @typescript-eslint/no-unsafe-assignment
We have a structure, where all our URLs start with
frontend/src/routes/company/$companyId/site/$siteId, so we are quite confident both those variables exist.Another example where we get this is:
But we are quite confident those two search-params exist, because our root component is defined as:
The type we see on hover in our editor are not
any, so it could also be a problem of the eslint rule.Any help would be appreciated!