I've recently added eslint to my Typescript codebase.
By default, it enables the @typescript-eslint/no-unsafe-member-access.
And all of sudden, I'm getting tons of lint errors on my catch blocks.
Is there a good workaround for this?
Typescript does not allow me to type it as Error directly from the catch statement like catch(err: Error).
I don't want to disable the rule completely, neither I want to add eslint-disable on every catch(err) block.
