Description
Before You File a Bug Report Please Confirm You Have Done The Following...
- I have tried restarting my IDE and the issue persists.
- I have updated to the latest version of the packages.
What version of ESLint are you using?
8.26.0
What version of eslint-plugin-svelte
are you using?
2.11.0
What did you do?
let currentTab:
| "confirmation"
| "destination-selection"
| "done"
| "introduction"
| "moving"
| "source-selection" = "introduction";
$: progress =
currentTab === "introduction"
? 1 / 5
: currentTab === "source-selection"
? 2 / 5
: currentTab === "destination-selection"
? 3 / 5
: currentTab === "confirmation"
? 4 / 5
: 0;
What did you expect to happen?
No errors
What actually happened?
9:16 error Placing a void expression inside another expression is forbidden. Move it to its own statement instead @typescript-eslint/no-confusing-void-expression
9:16 error Missing return type on function @typescript-eslint/explicit-function-return-type
10:5 error Unreachable code no-unreachable
Link to Minimal Reproducible Example
skaut/shared-drive-mover#1109 - it's not minimal, I can add a minimal repro if this doesn't help...
Additional comments
This only happens on 2.11.0, see skaut/shared-drive-mover#1109
Metadata
Metadata
Assignees
Labels
No labels