-
Notifications
You must be signed in to change notification settings - Fork 1.4k
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
space-before-conditional: false doesn't work on switch case statement(beautify.js) #1858
Comments
I wonder whether existing users think of |
I am new to this project and would love to contribute to this. I understand maintainers have limited time but would really appreciate any guidance on how to get started on this issue |
Having more specific questions would be helpful. In javascript implementation adding There might be other places where it is needed, but that is the main one. You'll need to update/add tests and do the python implementation as well. |
Hi @bitwiseman, I gave this issue a shot. Please review and do let me know if there is any feedback or corrections. It's my first time contributing! :) |
Issue #1858- Space-before-conditional: false doesn't work on switch case statement
Description
It is not removing spaces between
switch
and()
to make it like this:switch()
but it is not removing space, so it becomesswitch ()
Input
The code looked like this before beautification:
Expected Output
The code should have looked like this after beautification:
Actual Output
The code actually looked like this after beautification:
Steps to reproduce
Add this option..
{
"space_before_conditional": false
}
Environment
OS: Chrome Browser Android
Settings
Example:
The text was updated successfully, but these errors were encountered: