Repository navigation
[RFC] Do not indent calls with a single template literal argument - #873
Merged
Merged
Conversation
vjeux
commented
Mar 3, 2017
| })() + 3 + 2 + 3 + 2 + 3} with expr\`; | ||
|
|
||
| foo( | ||
| \`a long string \${1 + 2 + 3 + 2 + 3 + 2 + 3 + 2 + 3 + 2 + 3 + 2 + (function() { |
Contributor
Author
There was a problem hiding this comment.
this was written as being indented, and now is all messed up. So this isn't ideal for this situation :(
Member
|
Hm, yeah this is hard call. I don't feel good merging this without thinking a little more and seeing how it affects more people. Thanks for the idea! |
Contributor
Author
|
I'll close this to clean up the queue, we should re-open if we want to do it. |
This was referenced Mar 19, 2017
I'm not sure that this is a good idea. A current workaround is to remove the parenthesis. Fixes prettier#786
Contributor
Author
|
It keeps coming up, it seems like it's how people actually write their code. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
I'm not sure that this is a good idea. A current workaround is to remove the parenthesis.
Fixes #786