From d01df808c246ffd01ee8cd4db35115e6df3355b4 Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Tue, 25 Jul 2023 16:54:03 +0000 Subject: [PATCH] =?UTF-8?q?=E2=AC=86=EF=B8=8F=20Bump=20prettier=20from=202?= =?UTF-8?q?.8.8=20to=203.0.0=20(#1529)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * :arrow_up: Bump prettier from 2.8.8 to 3.0.0 Bumps [prettier](https://github.com/prettier/prettier) from 2.8.8 to 3.0.0. - [Release notes](https://github.com/prettier/prettier/releases) - [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md) - [Commits](https://github.com/prettier/prettier/compare/2.8.8...3.0.0) --- updated-dependencies: - dependency-name: prettier dependency-type: direct:development update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] * 🎨 Fix lint issues --------- Signed-off-by: dependabot[bot] Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com> Co-authored-by: Carlos Cuesta --- package.json | 2 +- packages/gitmojis/package.json | 2 +- packages/website/package.json | 2 +- packages/website/src/__tests__/pages.spec.tsx | 2 +- .../components/GitmojiList/Gitmoji/index.tsx | 2 +- .../hooks/__tests__/useLocalStorage.spec.tsx | 10 +++---- .../src/components/GitmojiList/index.tsx | 4 +-- .../Layout/__tests__/layout.spec.tsx | 10 +++---- .../website/src/pages/api/gitmojis/index.ts | 2 +- .../website/src/pages/api/gitmojis/schema.ts | 2 +- packages/website/src/pages/contributors.tsx | 4 +-- packages/website/src/utils/theme/theme.css | 28 ++++++++++++++++--- pnpm-lock.yaml | 18 ++++++------ 13 files changed, 54 insertions(+), 34 deletions(-) diff --git a/package.json b/package.json index 2f95866edf..a4b266164b 100644 --- a/package.json +++ b/package.json @@ -13,7 +13,7 @@ "@vercel/analytics": "^1.0.1", "husky": "^8.0.3", "lint-staged": "^13.2.3", - "prettier": "2.8.8", + "prettier": "3.0.0", "turbo": "1.10.11" }, "volta": { diff --git a/packages/gitmojis/package.json b/packages/gitmojis/package.json index a86620f43c..5eff6d9d02 100644 --- a/packages/gitmojis/package.json +++ b/packages/gitmojis/package.json @@ -25,7 +25,7 @@ "ajv-cli": "^5.0.0", "lint-staged": "^13.2.3", "nodemon": "^3.0.1", - "prettier": "2.8.8", + "prettier": "3.0.0", "unbuild": "^1.2.1" }, "author": { diff --git a/packages/website/package.json b/packages/website/package.json index 03b65d5236..c93e81a762 100644 --- a/packages/website/package.json +++ b/packages/website/package.json @@ -40,7 +40,7 @@ "next-sitemap": "^4.1.8", "next-themes": "^0.2.0", "node-mocks-http": "^1.12.2", - "prettier": "2.8.8", + "prettier": "3.0.0", "prop-types": "^15.8.1", "react": "^18.2.0", "react-dom": "^18.2.0", diff --git a/packages/website/src/__tests__/pages.spec.tsx b/packages/website/src/__tests__/pages.spec.tsx index 9a9596731f..17e90a0399 100644 --- a/packages/website/src/__tests__/pages.spec.tsx +++ b/packages/website/src/__tests__/pages.spec.tsx @@ -84,7 +84,7 @@ describe('Pages', () => { it('should render the page', () => { const wrapper = renderer.create( - + , ) expect(wrapper).toMatchSnapshot() }) diff --git a/packages/website/src/components/GitmojiList/Gitmoji/index.tsx b/packages/website/src/components/GitmojiList/Gitmoji/index.tsx index b668a7ac3a..bdb9adcdc1 100644 --- a/packages/website/src/components/GitmojiList/Gitmoji/index.tsx +++ b/packages/website/src/components/GitmojiList/Gitmoji/index.tsx @@ -46,7 +46,7 @@ const Gitmoji = (props: Props) => { '_', <> _ - + , )} diff --git a/packages/website/src/components/GitmojiList/hooks/__tests__/useLocalStorage.spec.tsx b/packages/website/src/components/GitmojiList/hooks/__tests__/useLocalStorage.spec.tsx index 8015e11465..ff4edb3ed4 100644 --- a/packages/website/src/components/GitmojiList/hooks/__tests__/useLocalStorage.spec.tsx +++ b/packages/website/src/components/GitmojiList/hooks/__tests__/useLocalStorage.spec.tsx @@ -33,19 +33,19 @@ describe('useLocalStorage', () => { + />, ) wrapper.update( + />, ) expect(window.localStorage.setItem).toHaveBeenCalledWith( stubs.localStorageMock.key, - stubs.localStorageMock.value + stubs.localStorageMock.value, ) }) }) @@ -74,14 +74,14 @@ describe('useLocalStorage', () => { + />, ) wrapper.update( + />, ) expect(console.error).toHaveBeenCalledWith(expect.any(String)) diff --git a/packages/website/src/components/GitmojiList/index.tsx b/packages/website/src/components/GitmojiList/index.tsx index ecbff88975..8e7100a231 100644 --- a/packages/website/src/components/GitmojiList/index.tsx +++ b/packages/website/src/components/GitmojiList/index.tsx @@ -44,7 +44,7 @@ const GitmojiList = (props: Props) => { useEffect(() => { const clipboard = new Clipboard( - '.gitmoji-clipboard-emoji, .gitmoji-clipboard-code' + '.gitmoji-clipboard-emoji, .gitmoji-clipboard-code', ) clipboard.on('success', function (e) { @@ -71,7 +71,7 @@ const GitmojiList = (props: Props) => { fontWeight: 600, fontSize: '90%', }, - } + }, ) }) diff --git a/packages/website/src/components/Layout/__tests__/layout.spec.tsx b/packages/website/src/components/Layout/__tests__/layout.spec.tsx index 7b64d718ba..45bc7ad1e4 100644 --- a/packages/website/src/components/Layout/__tests__/layout.spec.tsx +++ b/packages/website/src/components/Layout/__tests__/layout.spec.tsx @@ -22,7 +22,7 @@ describe('Layout', () => { const wrapper = renderer.create(

Some children

-
+ , ) expect(wrapper).toMatchSnapshot() }) @@ -32,12 +32,12 @@ describe('Layout', () => {

Some children

Hello!

-
+ , ) expect(Router.events.on).toHaveBeenCalledWith( 'routeChangeStart', - expect.any(Function) + expect.any(Function), ) }) @@ -46,14 +46,14 @@ describe('Layout', () => {

Some children

Hello!

-
+ , ) wrapper.unmount() expect(Router.events.on).toHaveBeenCalledWith( 'routeChangeStart', - expect.any(Function) + expect.any(Function), ) }) diff --git a/packages/website/src/pages/api/gitmojis/index.ts b/packages/website/src/pages/api/gitmojis/index.ts index 31a347b68d..5080c4d9aa 100644 --- a/packages/website/src/pages/api/gitmojis/index.ts +++ b/packages/website/src/pages/api/gitmojis/index.ts @@ -3,7 +3,7 @@ import { gitmojis } from 'gitmojis' const getGitmojis = ( request: NextApiRequest, - response: NextApiResponse + response: NextApiResponse, ): void => { const { method } = request diff --git a/packages/website/src/pages/api/gitmojis/schema.ts b/packages/website/src/pages/api/gitmojis/schema.ts index 19f88519de..91acb4a9c2 100644 --- a/packages/website/src/pages/api/gitmojis/schema.ts +++ b/packages/website/src/pages/api/gitmojis/schema.ts @@ -3,7 +3,7 @@ import { schema } from 'gitmojis' const getGitmojis = ( request: NextApiRequest, - response: NextApiResponse + response: NextApiResponse, ): void => { const { method } = request diff --git a/packages/website/src/pages/contributors.tsx b/packages/website/src/pages/contributors.tsx index 668609f0dc..98106be57b 100644 --- a/packages/website/src/pages/contributors.tsx +++ b/packages/website/src/pages/contributors.tsx @@ -11,7 +11,7 @@ type Contributor = { } const Contributors = ( - props: InferGetStaticPropsType + props: InferGetStaticPropsType, ) => ( <> @@ -37,7 +37,7 @@ export const getStaticProps: GetStaticProps<{ login: string } const response = await fetch( - 'https://api.github.com/repos/carloscuesta/gitmoji/contributors' + 'https://api.github.com/repos/carloscuesta/gitmoji/contributors', ) const contributors: GitHubContributor[] = await response.json() diff --git a/packages/website/src/utils/theme/theme.css b/packages/website/src/utils/theme/theme.css index d44a7f660e..00674bbeb5 100644 --- a/packages/website/src/utils/theme/theme.css +++ b/packages/website/src/utils/theme/theme.css @@ -48,8 +48,18 @@ body { margin: 0; padding: 0; font-size: 16.5px; - font-family: Avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', - 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', + font-family: + Avenir, + -apple-system, + BlinkMacSystemFont, + 'Segoe UI', + 'Roboto', + 'Oxygen', + 'Ubuntu', + 'Cantarell', + 'Fira Sans', + 'Droid Sans', + 'Helvetica Neue', sans-serif; } @@ -74,8 +84,18 @@ a:hover { } code { - font-family: Avenir, -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', - 'Oxygen', 'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue', + font-family: + Avenir, + -apple-system, + BlinkMacSystemFont, + 'Segoe UI', + 'Roboto', + 'Oxygen', + 'Ubuntu', + 'Cantarell', + 'Fira Sans', + 'Droid Sans', + 'Helvetica Neue', sans-serif; font-weight: 700; font-size: 1.25em; diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index c573406728..51e886596f 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -18,8 +18,8 @@ importers: specifier: ^13.2.3 version: 13.2.3 prettier: - specifier: 2.8.8 - version: 2.8.8 + specifier: 3.0.0 + version: 3.0.0 turbo: specifier: 1.10.11 version: 1.10.11 @@ -36,8 +36,8 @@ importers: specifier: ^3.0.1 version: 3.0.1 prettier: - specifier: 2.8.8 - version: 2.8.8 + specifier: 3.0.0 + version: 3.0.0 unbuild: specifier: ^1.2.1 version: 1.2.1 @@ -123,8 +123,8 @@ importers: specifier: ^1.12.2 version: 1.12.2 prettier: - specifier: 2.8.8 - version: 2.8.8 + specifier: 3.0.0 + version: 3.0.0 prop-types: specifier: ^15.8.1 version: 15.8.1 @@ -6599,9 +6599,9 @@ packages: engines: {node: '>= 0.8.0'} dev: true - /prettier@2.8.8: - resolution: {integrity: sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q==} - engines: {node: '>=10.13.0'} + /prettier@3.0.0: + resolution: {integrity: sha512-zBf5eHpwHOGPC47h0zrPyNn+eAEIdEzfywMoYn2XPi0P44Zp0tSq64rq0xAREh4auw2cJZHo9QUob+NqCQky4g==} + engines: {node: '>=14'} hasBin: true dev: true