Replace regex case: ..."code"...return with case: { .... return }


#1

I want another regex (the same link I updated it ) replace
case: .........return {};
with
case: { .........return {}; }
you know Air bnb eslint :smiley: so there’s no chance of anything outta scope…
SO bnasicaly I need to put
{
after
case:
and
}
before another case or also default which is at the end of every swithc statement


#2

This is a duplicate of your latest post in this thread. Please refrain from making multiple threads about the same question.


#3

Thanks @DamnedScholar. Closing this topic as duplicate.


#4