-
Notifications
You must be signed in to change notification settings - Fork 26.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Suggestion to add switch #296
Comments
Because you have indentation of 2 spaces and you do indentation after each switch (expression) {
case expression:
statements
break;
default:
statements
} But yeah, could be mentioned because for some reasons autoformatters allow you not to indent |
You might want to change your eslint config now that 1.0.0 has been released:
|
+1 we use |
fwiw I agree that if it's here, the first example (#296 (comment)) should be the one enforced by the config - however, I'd prefer to ban switch altogether :-) although that should be a different discussion. |
If the PR serves the purpose, then shall we close it ? |
Does it make sense to add switch
Because it's not clear add spaces before case or not
Or
The text was updated successfully, but these errors were encountered: