-
-
Notifications
You must be signed in to change notification settings - Fork 9.3k
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
An in-range update of prettier is breaking the build 🚨 #921
Comments
Version 1.2.1 just got published.Your tests are still failing with this version. Compare the changes 🚨 |
Version 1.2.2 just got published.Your tests are still failing with this version. Compare the changes 🚨 |
Version 1.3.0 just got published.Your tests are still failing with this version. Compare the changes 🚨 Release Notes1.3.0Facebook Adoption UpdateThe reason why I (@vjeux) embarked on this journey working on prettier has always been to get the entire Facebook codebase converted over. I would like to give an update on how it is going and what is the process to get there. The first projects to adopt prettier were Jest, React and immutable-js. Those are small codebases in the order of hundreds of files that have their own infrastructure. There are 5 or less people working on them full time. Then, Oculus and Nuclide converted their codebase over. The scale is bigger with a few thousands of files and tens of full time contributors but looks pretty similar to the first projects. The conversions went in one big codemod and that's it. Now, the entire Facebook codebase is way bigger than this and it's not feasible to just convert everything in one go and to convince everyone that their entire codebase is going to be reformatted under their feet. So we need to find a more incremental approach. Scaling adoptionRunning prettier on a piece of code is a pretty expensive operation, it makes your pull request look bad because of a lot of unrelated changes and it causes merge conflicts for all the outstanding pull requests. So once a file has been formatted, you should do everything to make sure it remains formatted.
We finally got all those things wired up 1.5 weeks ago and the reception has been insane. Many people from various teams converted their codebase to prettier on their own. As of today, 15% of Facebook codebase has been converted over! When I started working on prettier, I had a hunch that people were hungry for tools to solve formatting. But I had no idea that once the tooling was in place, people would rush to convert their codebase over! This is great confirmation that this project is useful to people and not just a gimmicky tool. TypeScript Support Progress@despairblue, @azz and @JamesHenry have been hard at work around getting TypeScript supported by prettier as it's the top requested feature. 2000 out of 11000 files in the TypeScript test suite are not yet properly printed. You can follow progress on #1480 and do not hesitate to help out! FlowAdd trailing commas on flow generics (#1381)The // Before type Errors = Immutable.Map< Ahohohhohohohohohohohohohohooh, Fbt | Immutable.Map<ErrorIndex, Fbt> >; Inline nullable in flow generics (#1426)The phase after printing things correctly is to tweak the output to make it closer to the way people write code in practice. Inlining optional flow types is a small thing that makes a difference. // Before type Cursor = Promise< ?{ newCursor?: number, formatted: string, } >; Allow flow declarations to break on StringLiteralTypeAnnotations (#1437)We can always find more places to add breaks when things don't fit 80 columns. This time it's around declaring a type as a constant string. // Before export type AdamPlacementValidationSingleErrorKey = 'SOME_FANCY_TARGETS.GLOBAL_TARGET'; Add space around
|
Version 1.3.1 just got published.Your tests are still failing with this version. Compare the changes 🚨 |
Version 1.2.0 of prettier just got published.
This version is covered by your current version range and after updating it in your project the build failed.
As prettier is “only” a devDependency of this project it might not break production or downstream projects, but “only” your build or test tools – preventing new deploys or publishes.
I recommend you give this issue a high priority. I’m sure you can resolve this 💪
Status Details
❌ continuous-integration/travis-ci/push The Travis CI build is in progress Details
✅ Better Code Hub ✅ Better Code Hub approves this code Details
✅ bitHound - Dependencies No failing dependencies. Details
❌ bitHound - Code 310 failing files. Details
Commits
The new version differs by 26 commits .
bc53920
1.2.0
3dc7562
Don't inline paren at right of arguments (#1345)
aafcf5f
Break if () if conditional inside breaks (#1344)
042e603
Fix arrow function parenthesis with comments in flow (#1339)
938f0e3
Improve regex printing (#1341)
e2fbaaf
Update link to @vjeux's React London presentation (#1330)
706640d
Optimize
prettier --help
for humans (#1340)cb79d82
add printer branch for TSFirstTypeNode (#1332)
dc499ba
Add information about Vim's other autocmd events (#1333)
565106d
Add parentheses for assignment as body of arrow (#1326)
652e2f9
Add prettier_d to Related Projects (#1328)
2e613cb
Add jestbrains filewatcher docs (#1310)
5e7503d
Add typescript as a valid parser value (#1318)
8d03423
Avoid breaking arguments for last arg expansion (#1305)
5995af2
Bail when traversing === groups (#1294)
There are 26 commits in total. See the full diff.
Not sure how things should work exactly?
There is a collection of frequently asked questions and of course you may always ask my humans.
Your Greenkeeper Bot 🌴
The text was updated successfully, but these errors were encountered: