postcss / postcss-cli

CLI for postcss
Other
836 stars 93 forks source link

Update dependency prettier to v2 #319

Closed renovate[bot] closed 4 years ago

renovate[bot] commented 4 years ago

This PR contains the following updates:

Package Type Update Change
prettier (source) devDependencies major ~1.19.1 -> ~2.0.0

Release Notes

prettier/prettier ### [`v2.0.2`](https://togithub.com/prettier/prettier/blob/master/CHANGELOG.md#​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 ([#​7842](https://togithub.com/prettier/prettier/pull/7842) by [@​thorn0](https://togithub.com/thorn0)) ```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 ([#​7836](https://togithub.com/prettier/prettier/pull/7836) by [@​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. ```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" ([#​7847](https://togithub.com/prettier/prettier/pull/7847)) See [#​7846](https://togithub.com/prettier/prettier/issues/7846) ##### Other changes ##### TypeScript: Fix `prettier-ignore` in union types ([#​7798](https://togithub.com/prettier/prettier/pull/7798) by [@​thorn0](https://togithub.com/thorn0)) ```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); ``` ### [`v2.0.1`](https://togithub.com/prettier/prettier/blob/master/CHANGELOG.md#​201) [Compare Source](https://togithub.com/prettier/prettier/compare/2.0.0...2.0.1) [diff](https://togithub.com/prettier/prettier/compare/2.0.0...2.0.1) ##### API: Fix build script to not corrupt `import-fresh` module ([#​7820](https://togithub.com/prettier/prettier/pull/7820) by [@​thorn0](https://togithub.com/thorn0)) ### [`v2.0.0`](https://togithub.com/prettier/prettier/blob/master/CHANGELOG.md#​200) [Compare Source](https://togithub.com/prettier/prettier/compare/1.19.1...2.0.0) [diff](https://togithub.com/prettier/prettier/compare/1.19.1...2.0.0) 🔗 [Release Notes](https://prettier.io/blog/2020/03/21/2.0.0.html)

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.



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

renovate[bot] commented 4 years ago

PR has been edited

:construction_worker: This PR has received other commits, so Renovate will stop updating it to avoid conflicts or other problems. If you wish to abandon your changes and have Renovate start over you may click the "rebase" checkbox in the PR body/description.

coveralls commented 4 years ago

Coverage Status

Coverage remained the same at 76.316% when pulling 2deb7bef272002b793b7f2730b51636216856e27 on renovate/prettier-2.x into 42fc85e743b20dd8d4f3d6a1d16b4de31f7aa08a on master.