Skip to content
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

Update dependency prettier to ^1.16.1 #58

Merged
merged 1 commit into from
Jan 24, 2019

Conversation

renovate[bot]
Copy link

@renovate renovate bot commented Jan 20, 2019

This PR contains the following updates:

Package Type Update Change References
prettier devDependencies minor ^1.15.3 -> ^1.16.1 homepage, source

Release Notes

prettier/prettier

v1.16.1

Compare Source

diff

  • JavaScript: Do not format functions with arguments as react hooks (#​5778 by @​SimenB)

    The formatting added in Prettier 1.16 would format any function receiving an
    arrow function and an array literal to match React Hook's documentation.
    Prettier will now format this the same as before that change if the arrow
    function receives any arguments.

    // Input
    ["red", "white", "blue", "black", "hotpink", "rebeccapurple"].reduce(
      (allColors, color) => {
        return allColors.concat(color);
      },
      []
    );
    
    // Output (Prettier 1.16.0)
    ["red", "white", "blue", "black", "hotpink", "rebeccapurple"].reduce((
      allColors,
      color
    ) => {
      return allColors.concat(color);
    }, []);
    
    // Output (Prettier 1.16.1)
    ["red", "white", "blue", "black", "hotpink", "rebeccapurple"].reduce(
      (allColors, color) => {
        return allColors.concat(color);
      },
      []
    );
  • JavaScript: Add necessary parentheses for decorators (#​5785 by @​ikatyang)

    Parentheses for decorators with nested call expressions are optional for legacy decorators
    but they're required for decorators in the current proposal.

    // Input
    class X {
      @​(computed().volatile())
      prop
    }
    
    // Output (Prettier 1.16.0)
    class X {
      @​computed().volatile()
      prop
    }
    
    // Output (Prettier 1.16.1)
    class X {
      @​(computed().volatile())
      prop
    }
  • TypeScript: Stable parentheses for function type in the return type of arrow function (#​5790 by @​ikatyang)

    There's a regression introduced in 1.16 that
    parentheses for function type in the return type of arrow function were kept adding/removing.
    Their parentheses are always printed now.

    // Input
    const foo = (): (() => void) => (): void => null;
    const bar = (): () => void => (): void => null;
    
    // First Output (Prettier 1.16.0)
    const foo = (): () => void => (): void => null;
    const bar = (): (() => void) => (): void => null;
    
    // Second Output (Prettier 1.16.0)
    const foo = (): (() => void) => (): void => null;
    const bar = (): () => void => (): void => null;
    
    // Output (Prettier 1.16.1)
    const foo = (): (() => void) => (): void => null;
    const bar = (): (() => void) => (): void => null;
  • MDX: Correctly recognize inline JSX (#​5783 by @​ikatyang)

    Previously, some inline JSXs are wrongly recognized as block HTML/JSX,
    which causes unexpected behaviors. This issue is now fixed.

    <!-- Input -->
    _foo <InlineJSX /> bar_
    
    <!-- Output (Prettier 1.16.0) -->
    _foo
    
    <InlineJSX /> bar_
    
    <!-- Output (Prettier 1.16.1) -->
    _foo <InlineJSX /> bar_

v1.16.0

Compare Source

diff

🔗 Release Notes


Renovate configuration

📅 Schedule: At any time (no schedule defined).

🚦 Automerge: Enabled.

♻️ Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "rebase!".

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot. View repository job log here.

@renovate renovate bot force-pushed the feature/renovate-prettier-1.x branch from 4b8b778 to cb9c655 Compare January 22, 2019 14:18
@renovate renovate bot changed the title Update dependency prettier to ^1.16.0 Update dependency prettier to ^1.16.1 Jan 22, 2019
@codecov
Copy link

codecov bot commented Jan 22, 2019

Codecov Report

Merging #58 into develop will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff            @@
##           develop      #58   +/-   ##
========================================
  Coverage    59.45%   59.45%           
========================================
  Files            7        7           
  Lines          259      259           
  Branches        37       37           
========================================
  Hits           154      154           
  Misses          87       87           
  Partials        18       18

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update ed367c6...67410fb. Read the comment docs.

eaviles
eaviles previously approved these changes Jan 22, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

2 participants