Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: prettier/prettier
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 0.17.1
Choose a base ref
...
head repository: prettier/prettier
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 0.18.0
Choose a head ref
  • 14 commits
  • 52 files changed
  • 6 contributors

Commits on Feb 15, 2017

  1. [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.
    btmills authored and vjeux committed Feb 15, 2017
    Configuration menu
    Copy the full SHA
    eda2639 View commit details
    Browse the repository at this point in the history
  2. 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.
    vjeux authored and jlongster committed Feb 15, 2017
    Configuration menu
    Copy the full SHA
    9a5090a View commit details
    Browse the repository at this point in the history
  3. Inline objects & arrays as right part of a boolean expression (#692)

    This is a common pattern to write default values.
    vjeux authored and jlongster committed Feb 15, 2017
    Configuration menu
    Copy the full SHA
    0c00290 View commit details
    Browse the repository at this point in the history
  4. [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.
    vjeux authored and jlongster committed Feb 15, 2017
    Configuration menu
    Copy the full SHA
    1b37cb0 View commit details
    Browse the repository at this point in the history
  5. Ensure importKind is printed (#718)

    existentialism authored and vjeux committed Feb 15, 2017
    Configuration menu
    Copy the full SHA
    e0f82cd View commit details
    Browse the repository at this point in the history

Commits on Feb 16, 2017

  1. [Docs]: update Readme to reference VS extension (#720)

    Added a link to Mads Kristensen's new VS extension for prettier
    Tom McKearney authored and jlongster committed Feb 16, 2017
    Configuration menu
    Copy the full SHA
    0e399f0 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    291871d View commit details
    Browse the repository at this point in the history
  3. [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.
    vjeux authored and jlongster committed Feb 16, 2017
    Configuration menu
    Copy the full SHA
    7046d97 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    d8c2428 View commit details
    Browse the repository at this point in the history
  5. Run prettier on 0.17.0

    vjeux committed Feb 16, 2017
    Configuration menu
    Copy the full SHA
    b93a207 View commit details
    Browse the repository at this point in the history
  6. Align boolean inside of arrow functions (#691)

    We already do it for if/... but it looks weird for arrow function body.
    vjeux authored Feb 16, 2017
    Configuration menu
    Copy the full SHA
    00e5014 View commit details
    Browse the repository at this point in the history
  7. re-run snapshot tests

    vjeux committed Feb 16, 2017
    Configuration menu
    Copy the full SHA
    330b136 View commit details
    Browse the repository at this point in the history
  8. 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
    vjeux authored and jlongster committed Feb 16, 2017
    Configuration menu
    Copy the full SHA
    e30482d View commit details
    Browse the repository at this point in the history
  9. 0.18.0

    vjeux committed Feb 16, 2017
    Configuration menu
    Copy the full SHA
    848dfa3 View commit details
    Browse the repository at this point in the history
Loading