eslint-config-xo-typescript
eslint-config-xo-typescript copied to clipboard
ESLint shareable config for TypeScript to be used with eslint-config-xo
``` Error: .eslintrc.js » eslint-config-pixiebrix » eslint-config-xo-typescript: Configuration for rule "@typescript-eslint/switch-exhaustiveness-check" is invalid: Value [{"allowDefaultCaseForExhaustiveSwitch":false,"requireDefaultForNonUnion":true}] should NOT have more than 0 items. ``` I have the latest dependencies in `eslint-config-pixiebrix`...
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...
I saw [your comment](https://github.com/xojs/eslint-config-xo-typescript/blob/b336a1c9127a6fa278fe58b06040ed75967b69b2/index.js#L654-L664) and the corresponding discussion thread about this rule. Well, it seems like it is ready to go! We get tremendous value by enabling it with the...
Hi there, I have updated my project to ESLint 9 and all packages required for this to the latest version. Among all these packages I `eslint-config-xo-typescript` to enable linting for...
To create globals available on `globalThis`, you must use `var`: https://stackoverflow.com/a/56984941/288906 What do you think about adding an exclusion for files named global.d.ts and globals.d.ts? A proper fix for this...