quero-edu / guidelines

📘 The definitive Quero Education code-style guide.
MIT License
22 stars 2 forks source link

feat: allow any in template expressions #67

Closed toledompm closed 3 years ago

toledompm commented 3 years ago

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? image

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