can't pass options to @typescript-eslint/switch-exhaustiveness-check
eliezra236 opened this issue · 0 comments
eliezra236 commented
Hi,
I am getting the following error when trying to pass options to @typescript-eslint/switch-exhaustiveness-check
Using xo: 0.5.6
Configuration for rule "@typescript-eslint/switch-exhaustiveness-check" is invalid:
Value [{"allowDefaultCaseForExhaustiveSwitch":false,"requireDefaultForNonUnion":true}] should NOT have more than 0 items.
Passing it just single value like:
"@typescript-eslint/switch-exhaustiveness-check": "error"
works fine.
But the following fails:
"@typescript-eslint/switch-exhaustiveness-check": [
"error",
{
"allowDefaultCaseForExhaustiveSwitch": false,
"requireDefaultForNonUnion": true
}
],