Skip to content

Commit 5f58e54

Browse files
committed
Make switch-exhaustiveness-check stricter
1 parent 6baa16b commit 5f58e54

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

eslint.config.js

+4-1
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,10 @@ export default typescriptEslint.config(
145145
],
146146
"@typescript-eslint/switch-exhaustiveness-check": [
147147
error,
148-
{ allowDefaultCaseForExhaustiveSwitch: false },
148+
{
149+
allowDefaultCaseForExhaustiveSwitch: false,
150+
requireDefaultForNonUnion: true,
151+
},
149152
],
150153
"@typescript-eslint/triple-slash-reference": warn,
151154
"@typescript-eslint/unbound-method": error,

0 commit comments

Comments
 (0)