-
-
Notifications
You must be signed in to change notification settings - Fork 4.4k
Comparing changes
Open a pull request
base repository: prettier/prettier
base: 0.17.1
head repository: prettier/prettier
compare: 0.18.0
- 14 commits
- 52 files changed
- 6 contributors
Commits on Feb 15, 2017
-
[Docs] Use replaceState API when demo code changes (#710)
In the current demo, every time the code in the left panel is changed, the new code is stored in the URL hash, which pushes a new history entry. This effectively "breaks" the back button. This change calls `history.replaceState` instead, so a single click of the back button will return the browser to whatever page was open before navigating to the demo.
Configuration menu - View commit details
-
Copy full SHA for eda2639 - Browse repository at this point
Copy the full SHA eda2639View commit details -
Do not inline new as last argument (#705)
We inline function definitions but we shouldn't inline new expressions, 835befe introduced both call expressions and new expressions. Call expressions have been removed but looks like new haven't.
Configuration menu - View commit details
-
Copy full SHA for 9a5090a - Browse repository at this point
Copy the full SHA 9a5090aView commit details -
Inline objects & arrays as right part of a boolean expression (#692)
This is a common pattern to write default values.
Configuration menu - View commit details
-
Copy full SHA for 0c00290 - Browse repository at this point
Copy the full SHA 0c00290View commit details -
[RFC] Remove parenthesis object special case (#689)
I've started the discussion around it but I think that it was a mistake. It feels weird to add parenthesis on object values sometimes but not others. I think that it's best to let prettier do its work on staying under 80 columns based on the rules we added.
Configuration menu - View commit details
-
Copy full SHA for 1b37cb0 - Browse repository at this point
Copy the full SHA 1b37cb0View commit details -
Configuration menu - View commit details
-
Copy full SHA for e0f82cd - Browse repository at this point
Copy the full SHA e0f82cdView commit details
Commits on Feb 16, 2017
-
[Docs]: update Readme to reference VS extension (#720)
Added a link to Mads Kristensen's new VS extension for prettier
Configuration menu - View commit details
-
Copy full SHA for 0e399f0 - Browse repository at this point
Copy the full SHA 0e399f0View commit details -
Configuration menu - View commit details
-
Copy full SHA for 291871d - Browse repository at this point
Copy the full SHA 291871dView commit details -
[RFC] Preserve new lines between array elements (#707)
This has come up many times in the past and while going through the fb codebase, there are a few instances where we group array elements logically using empty lines and it's a shame that they are gone.
Configuration menu - View commit details
-
Copy full SHA for 7046d97 - Browse repository at this point
Copy the full SHA 7046d97View commit details -
Configuration menu - View commit details
-
Copy full SHA for d8c2428 - Browse repository at this point
Copy the full SHA d8c2428View commit details -
Configuration menu - View commit details
-
Copy full SHA for b93a207 - Browse repository at this point
Copy the full SHA b93a207View commit details -
Align boolean inside of arrow functions (#691)
We already do it for if/... but it looks weird for arrow function body.
Configuration menu - View commit details
-
Copy full SHA for 00e5014 - Browse repository at this point
Copy the full SHA 00e5014View commit details -
Configuration menu - View commit details
-
Copy full SHA for 330b136 - Browse repository at this point
Copy the full SHA 330b136View commit details -
Fix trailing new lines preservation (#724)
There is an off by one error which made the algorithm not work all the time. In many cases, it actually is the opposite, so whenever you save, it adds/removes that line. I noticed it during the --debug-check run on our codebase but didn't investigate. Fixes #723
Configuration menu - View commit details
-
Copy full SHA for e30482d - Browse repository at this point
Copy the full SHA e30482dView commit details -
Configuration menu - View commit details
-
Copy full SHA for 848dfa3 - Browse repository at this point
Copy the full SHA 848dfa3View commit details
This comparison is taking too long to generate.
Unfortunately it looks like we can’t render this comparison for you right now. It might be too big, or there might be something weird with your repository.
You can try running this command locally to see the comparison on your machine:
git diff 0.17.1...0.18.0