diff --git a/src/configs/typescript.ts b/src/configs/typescript.ts index f2fdf3e..d5152d0 100644 --- a/src/configs/typescript.ts +++ b/src/configs/typescript.ts @@ -352,8 +352,14 @@ const typeAwareTypescriptRules: FlatConfigItem['rules'] = { }, ], 'ts/return-await': ['error', 'always'], - // @ts-expect-error - type definition is not up-to-date - 'ts/switch-exhaustiveness-check': ['error', { requireDefaultForNonUnion: true }], + 'ts/switch-exhaustiveness-check': [ + 'error', + // @ts-expect-error - type definition is not up-to-date + { + requireDefaultForNonUnion: true, + allowDefaultCaseForExhaustiveSwitch: false, + }, + ], 'ts/unbound-method': ['error', { ignoreStatic: false }], 'ts/prefer-find': 'error', }