Repository navigation
Do not break require calls - #841
Merged
Merged
Conversation
This has come up a couple times on the issue tracker on the react-native-web discussion about Twitter internals. It seems like there's a concensus that people don't break long require calls and they'd rather have it go > 80 columns. Fixes prettier#303 Fixes prettier#752
vjeux
added a commit
to vjeux/prettier
that referenced
this pull request
Mar 1, 2017
This happens very frequently that naming a test makes the entire line go > 80 columns and requires to indent everything which takes a lot more space. We've had this being reported multiple times and it also affects a lot of tests inside of fb. Fixes prettier#159 (Note, this is built on-top of prettier#841 but github doesn't handle stacked pull requests well...)
This was referenced Mar 1, 2017
jlongster
reviewed
Mar 3, 2017
| nine, | ||
| ten, | ||
| eleven | ||
| } = require(\\"./my-utils\\"); |
Member
There was a problem hiding this comment.
As long as these still break, I'm fine with it :)
vjeux
added a commit
to vjeux/prettier
that referenced
this pull request
Mar 3, 2017
This happens very frequently that naming a test makes the entire line go > 80 columns and requires to indent everything which takes a lot more space. We've had this being reported multiple times and it also affects a lot of tests inside of fb. Fixes prettier#159 (Note, this is built on-top of prettier#841 but github doesn't handle stacked pull requests well...)
|
Does this take into account |
Contributor
|
I'm pretty sure that it's just looking for any functions explicitly called |
jlongster
pushed a commit
that referenced
this pull request
Mar 3, 2017
This happens very frequently that naming a test makes the entire line go > 80 columns and requires to indent everything which takes a lot more space. We've had this being reported multiple times and it also affects a lot of tests inside of fb. Fixes #159 (Note, this is built on-top of #841 but github doesn't handle stacked pull requests well...)
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.
This has come up a couple times on the issue tracker on the react-native-web discussion about Twitter internals. It seems like there's a concensus that people don't break long require calls and they'd rather have it go > 80 columns.
Fixes #303
Fixes #752