xojs / eslint-config-xo-typescript

ESLint shareable config for TypeScript to be used with eslint-config-xo
MIT License
171 stars 25 forks source link

Consider disabling `default-case` because of `@typescript-eslint/switch-exhaustiveness-check` #80

Closed EdJoPaTo closed 8 months ago

EdJoPaTo commented 9 months ago

With types the switch case default case can be determined way better than it can be in JavaScript. The default-case is useful in JavaScript but I only ignore it now with the updated @typescript-eslint/switch-exhaustiveness-check rules.