-
-
Notifications
You must be signed in to change notification settings - Fork 4.5k
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
Fix: overindent in VariableDeclarator parens or brackets (fixes #5492) #5509
Conversation
Thanks for the pull request, @dgreensp! I took a look to make sure it's ready for merging and found some changes are needed:
Can you please update the pull request to address these? (More information can be found in our pull request guide.) |
a4529ad
to
ad100fd
Compare
LGTM. Thanks for the PR. |
ping @BYK |
I feel like someone else's gonna complain about this change so not sure if this should be behind an option (no idea what that will be). Also commit log needs to be fixed, see @eslintbot please @dgreensp :) |
@BYK I don't think there's anything controversial here. All the existing tests pass except one -- so people still get their hanging braces, etc. etc. -- and this one test was added by you, I think, while fixing #3329, but the original user report actually expects a single indent here, not a double indent, so the test isn't evidence of some other opinion or intention. Anyway, it's hard to imagine an editor or IDE putting a double or triple indent after a trailing bracket. I think I fixed the bot errors; let me know if not! |
Meh, I'm indifferent since I find this exception case weird anyways. I was simply warning you that this would probably break someone else's preference. If @gyandeeps is okay, the code looks good. |
@dgreensp Have signed our CLA? |
Yes, verified CLA. Good to merge? |
Fix: overindent in VariableDeclarator parens or brackets (fixes #5492)
thanks @ilyavolodin for confirmation . |
Woot!! Thanks guys! |
@dgreensp You rock! |
Thanks for the PR. 👍 |
No description provided.