— That is done by default in VSCode
And some insane static analysis to make sure that you don't accidentally reuse another variable from another switch case without a block
— Probably a default setting in its TS lintrr
— Unfortunately no, because it could be intended behavior
— It does that for me, maybe an extension?
case 'POST': const foo = ... break;default: console.log(foo);
Message permanent page
— I'm not sure if TS is this powerful
— It says something along "This case falls to the next one, either add a break or return statement or comment the line before the next case with // expect-error"
— But why do all this setup work when you can just not use switches
— Anyone with a good place/location to explain better on local storage especially from forms?
— Why would you use localStorage with a form? 🤔
— That doesn't make sense