[PR #837] [MERGED] Update dependency prettier to v2.0.2 #872

Closed
opened 2025-11-06 12:08:47 -06:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/veggiemonk/awesome-docker/pull/837
Author: @renovate[bot]
Created: 3/23/2020
Status: Merged
Merged: 3/24/2020
Merged by: @agebhar1

Base: masterHead: renovate/prettier-2.x


📝 Commits (1)

  • acac272 Update dependency prettier to v2.0.2

📊 Changes

2 files changed (+4 additions, -4 deletions)

View changed files

📝 package-lock.json (+3 -3)
📝 package.json (+1 -1)

📄 Description

This PR contains the following updates:

Package Type Update Change
prettier (source) devDependencies patch 2.0.1 -> 2.0.2

Release Notes

prettier/prettier

v2.0.2

Compare Source

diff

2.0 regressions
JavaScript: Fix formatting of pseudo-elements and pseudo-classes in styled-components template literals (#​7842 by @​thorn0)
// Input
const Foo = styled.div`
  ${media.smallDown}::before {}
`;

// Prettier 2.0.0
const Foo = styled.div`
  ${media.smallDown}: : before{
  }
`;

// Prettier 2.0.2
const Foo = styled.div`
  ${media.smallDown}::before {
  }
`;
TypeScript: Avoid trailing commas on index signatures with only one parameter (#​7836 by @​bakkot)

TypeScript index signatures technically allow multiple parameters and trailing commas, but it's an error to have multiple parameters there, and Babel's TypeScript parser does not accept them. So Prettier now avoids putting a trailing comma there when you have only one parameter.

// Input
export type A = {
  a?: {
    [
      x: string
    ]: typeof SomeLongLongLongTypeName[keyof typeof SomeLongLongLongTypeName];
  } | null;
};

// Prettier 2.0.0
export type A = {
  a?: {
    [
      x: string,
    ]: typeof SomeLongLongLongTypeName[keyof typeof SomeLongLongLongTypeName];
  } | null;
};

// Prettier 2.0.2
export type A = {
  a?: {
    [
      x: string
    ]: typeof SomeLongLongLongTypeName[keyof typeof SomeLongLongLongTypeName];
  } | null;
};
Revert "markdown: fix redundant leading spaces in markdown list" (#​7847)

See #​7846

Other changes
TypeScript: Fix prettier-ignore in union types (#​7798 by @​thorn0)
// Input
export type a =
  // foo
  | foo1&foo2
  // prettier-ignore
  | bar1&bar2
  // baz
  | baz1&baz2;

// Prettier 2.0.0
export type a =
  // foo
  | foo1&foo2
    // prettier-ignore
  // prettier-ignore
  | (bar1 & bar2)
  // baz
  | (baz1 & baz2);

// Prettier 2.0.2
export type a =
  // foo
  | (foo1 & foo2)
  // prettier-ignore
  | bar1&bar2
  // baz
  | (baz1 & baz2);

Renovate configuration

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

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

♻️ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 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 WhiteSource Renovate. View repository job log here.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/veggiemonk/awesome-docker/pull/837 **Author:** [@renovate[bot]](https://github.com/apps/renovate) **Created:** 3/23/2020 **Status:** ✅ Merged **Merged:** 3/24/2020 **Merged by:** [@agebhar1](https://github.com/agebhar1) **Base:** `master` ← **Head:** `renovate/prettier-2.x` --- ### 📝 Commits (1) - [`acac272`](https://github.com/veggiemonk/awesome-docker/commit/acac272ada7410b0cc36028100059dfb601e28f2) Update dependency prettier to v2.0.2 ### 📊 Changes **2 files changed** (+4 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `package-lock.json` (+3 -3) 📝 `package.json` (+1 -1) </details> ### 📄 Description This PR contains the following updates: | Package | Type | Update | Change | |---|---|---|---| | [prettier](https://prettier.io) ([source](https://togithub.com/prettier/prettier)) | devDependencies | patch | [`2.0.1` -> `2.0.2`](https://renovatebot.com/diffs/npm/prettier/2.0.1/2.0.2) | --- ### Release Notes <details> <summary>prettier/prettier</summary> ### [`v2.0.2`](https://togithub.com/prettier/prettier/blob/master/CHANGELOG.md#&#8203;202) [Compare Source](https://togithub.com/prettier/prettier/compare/2.0.1...2.0.2) [diff](https://togithub.com/prettier/prettier/compare/2.0.1...2.0.2) ##### 2.0 regressions ##### JavaScript: Fix formatting of pseudo-elements and pseudo-classes in styled-components template literals ([#&#8203;7842](https://togithub.com/prettier/prettier/pull/7842) by [@&#8203;thorn0](https://togithub.com/thorn0)) <!-- prettier-ignore --> ```jsx // Input const Foo = styled.div` ${media.smallDown}::before {} `; // Prettier 2.0.0 const Foo = styled.div` ${media.smallDown}: : before{ } `; // Prettier 2.0.2 const Foo = styled.div` ${media.smallDown}::before { } `; ``` ##### TypeScript: Avoid trailing commas on index signatures with only one parameter ([#&#8203;7836](https://togithub.com/prettier/prettier/pull/7836) by [@&#8203;bakkot](https://togithub.com/bakkot)) TypeScript index signatures technically allow multiple parameters and trailing commas, but it's an error to have multiple parameters there, and Babel's TypeScript parser does not accept them. So Prettier now avoids putting a trailing comma there when you have only one parameter. <!-- prettier-ignore --> ```ts // Input export type A = { a?: { [ x: string ]: typeof SomeLongLongLongTypeName[keyof typeof SomeLongLongLongTypeName]; } | null; }; // Prettier 2.0.0 export type A = { a?: { [ x: string, ]: typeof SomeLongLongLongTypeName[keyof typeof SomeLongLongLongTypeName]; } | null; }; // Prettier 2.0.2 export type A = { a?: { [ x: string ]: typeof SomeLongLongLongTypeName[keyof typeof SomeLongLongLongTypeName]; } | null; }; ``` ##### Revert "markdown: fix redundant leading spaces in markdown list" ([#&#8203;7847](https://togithub.com/prettier/prettier/pull/7847)) See [#&#8203;7846](https://togithub.com/prettier/prettier/issues/7846) ##### Other changes ##### TypeScript: Fix `prettier-ignore` in union types ([#&#8203;7798](https://togithub.com/prettier/prettier/pull/7798) by [@&#8203;thorn0](https://togithub.com/thorn0)) <!-- prettier-ignore --> ```ts // Input export type a = // foo | foo1&foo2 // prettier-ignore | bar1&bar2 // baz | baz1&baz2; // Prettier 2.0.0 export type a = // foo | foo1&foo2 // prettier-ignore // prettier-ignore | (bar1 & bar2) // baz | (baz1 & baz2); // Prettier 2.0.2 export type a = // foo | (foo1 & foo2) // prettier-ignore | bar1&bar2 // baz | (baz1 & baz2); ``` </details> --- ### Renovate configuration :date: **Schedule**: At any time (no schedule defined). :vertical_traffic_light: **Automerge**: Disabled by config. Please merge this manually once you are satisfied. :recycle: **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. :no_bell: **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [WhiteSource Renovate](https://renovate.whitesourcesoftware.com). View repository job log [here](https://app.renovatebot.com/dashboard#veggiemonk/awesome-docker). --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2025-11-06 12:08:47 -06:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/awesome-docker#872