I ran into a lot of problems logging error messages, as they are treated as any. Is anyone against turning this rule off, for any types?
A workarround I have been using is to tell typescript to treat error.message as a string, but it's kinda bothersome to go back and fix every single case, and (IMO) makes the codebase a bit ugglier.
I ran into a lot of problems logging error messages, as they are treated as
any
. Is anyone against turning this rule off, forany
types?A workarround I have been using is to tell typescript to treat
error.message
as a string, but it's kinda bothersome to go back and fix every single case, and (IMO) makes the codebase a bit ugglier.I only changed the value of
allowAny
, the rest is set to the default https://github.com/typescript-eslint/typescript-eslint/blob/master/packages/eslint-plugin/docs/rules/restrict-template-expressions.md#options