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.13.0
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.14.0
Choose a head ref
  • 13 commits
  • 115 files changed
  • 5 contributors

Commits on Jan 28, 2017

  1. Adding a 4th arg to foo function for consistency (#499)

    When reading the Readme file I noticed that the first `foo` method has only 3 args but every other `foo` method has 4. Therefore, I am adding a 4th arg to the first `foo` method for consistency.
    MarekMatejka authored and vjeux committed Jan 28, 2017
    Configuration menu
    Copy the full SHA
    56f27a8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    d548ef0 View commit details
    Browse the repository at this point in the history
  3. Run prettier on 0.13.0 (#497)

    vjeux authored Jan 28, 2017
    Configuration menu
    Copy the full SHA
    c34013b View commit details
    Browse the repository at this point in the history
  4. 0.13.1 hotfix

    vjeux committed Jan 28, 2017
    Configuration menu
    Copy the full SHA
    3f776be View commit details
    Browse the repository at this point in the history

Commits on Jan 29, 2017

  1. Only write to files if the change (#511)

    Fixes #506.
    lydell authored and vjeux committed Jan 29, 2017
    Configuration menu
    Copy the full SHA
    17add13 View commit details
    Browse the repository at this point in the history

Commits on Jan 30, 2017

  1. Remove extra group when printing object values (#502)

    It turns out that in an unlikely turn of event, the inner group can be inline and not print the opening paren but the outer group breaks and outputs the closing paren which generates invalid JavaScript.
    
    I tried removing the group altogether and no tests failed, so I'm assuming the group wasn't needed in the first place. If it was, we should add tests to cover this.
    
    Fixes #501
    vjeux authored and jlongster committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    98a052f View commit details
    Browse the repository at this point in the history
  2. Add documentation for JetBrains products. (#509)

    * Add documentation for JetBrains products.
    
    * Fix typos in `jetbrains/README.md`
    
    * Remove examples with `npm run` and `yarn`
    avocadowastaken authored and jlongster committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    8d786e5 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    9cfc645 View commit details
    Browse the repository at this point in the history
  4. Mention eslint-config-prettier (#516)

    lydell authored and jlongster committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    94afacd View commit details
    Browse the repository at this point in the history
  5. [RFC] Keep expanded objects expanded (#495)

    Another attempt at solving the issue where objects are not expanded the way people expect. If there's any new line in the original source, it's going to expand it. This gives more control to the user in how the objects should be formatted.
    
    Fixes #74
    vjeux authored Jan 30, 2017
    Configuration menu
    Copy the full SHA
    959235a View commit details
    Browse the repository at this point in the history
  6. Do not always put an empty lines after directives (#505)

    It turns out that I need to call skipNewLine before calling hasNewLine in order to figure out if there's an empty line right after. Oops.
    
    Fixes #504
    vjeux authored Jan 30, 2017
    Configuration menu
    Copy the full SHA
    d5e0fd5 View commit details
    Browse the repository at this point in the history
  7. Print numbers in a uniform way (#498)

    * Print numbers in a uniform way
    
    - Still preserve the radix (binary, octal, hexadecimal or decimal) used
      in the original source code.
    - Still preserve scientific notation.
    - Add 0 to fractions. `.1` -> `0.1`
    - Remove trailing dots from integers. `1.` -> `1`
    - Always print the radix letters lowercase. `0b`, `0o`, `0x`
    - Always print scientific notation lowercase. `1e1`
    - Always print hexadecimal digits uppercase. `0x123ABCDEF`
    - Remove unneeded plus in scientific notation. `1e+1` -> `1e1`
    - Remove unneeded zeroes in scientific notation. `1e-001` -> `1e-1`
    - Preserve leading zeroes in non-decimal radix. This can be useful when
      working in binary, and having both `0b111000` and `0b000111` for
      example.
    
    * Always print numbers lowercase
    
    * Remove trailing dot in scientific notation
    
    * Update snapshots
    lydell authored and vjeux committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    d27482e View commit details
    Browse the repository at this point in the history
  8. 0.14.0

    vjeux committed Jan 30, 2017
    Configuration menu
    Copy the full SHA
    f88c950 View commit details
    Browse the repository at this point in the history
Loading