Skip to content

Commit

Permalink
⬆️ Bump prettier from 2.8.8 to 3.0.0 (#1529)
Browse files Browse the repository at this point in the history
* ⬆️ 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](prettier/prettier@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] <[email protected]>

* 🎨 Fix lint issues

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Carlos Cuesta <[email protected]>
  • Loading branch information
dependabot[bot] and carloscuesta committed Jul 25, 2023
1 parent 24551fc commit d01df80
Show file tree
Hide file tree
Showing 13 changed files with 54 additions and 34 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion packages/gitmojis/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
2 changes: 1 addition & 1 deletion packages/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
2 changes: 1 addition & 1 deletion packages/website/src/__tests__/pages.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ describe('Pages', () => {

it('should render the page', () => {
const wrapper = renderer.create(
<Contributors contributors={stubs.contributors} />
<Contributors contributors={stubs.contributors} />,
)
expect(wrapper).toMatchSnapshot()
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ const Gitmoji = (props: Props) => {
'_',
<>
_<wbr />
</>
</>,
)}
</code>
</button>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,19 +33,19 @@ describe('useLocalStorage', () => {
<TestComponent
storageKey={stubs.localStorageMock.key}
storageValue={stubs.localStorageMock.value}
/>
/>,
)

wrapper.update(
<TestComponent
storageKey={stubs.localStorageMock.key}
storageValue={stubs.localStorageMock.value}
/>
/>,
)

expect(window.localStorage.setItem).toHaveBeenCalledWith(
stubs.localStorageMock.key,
stubs.localStorageMock.value
stubs.localStorageMock.value,
)
})
})
Expand Down Expand Up @@ -74,14 +74,14 @@ describe('useLocalStorage', () => {
<TestComponent
storageKey={stubs.localStorageMock.key}
storageValue={stubs.localStorageMock.value}
/>
/>,
)

wrapper.update(
<TestComponent
storageKey={stubs.localStorageMock.key}
storageValue={stubs.localStorageMock.value}
/>
/>,
)

expect(console.error).toHaveBeenCalledWith(expect.any(String))
Expand Down
4 changes: 2 additions & 2 deletions packages/website/src/components/GitmojiList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand All @@ -71,7 +71,7 @@ const GitmojiList = (props: Props) => {
fontWeight: 600,
fontSize: '90%',
},
}
},
)
})

Expand Down
10 changes: 5 additions & 5 deletions packages/website/src/components/Layout/__tests__/layout.spec.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ describe('Layout', () => {
const wrapper = renderer.create(
<Layout {...stubs.props}>
<p>Some children</p>
</Layout>
</Layout>,
)
expect(wrapper).toMatchSnapshot()
})
Expand All @@ -32,12 +32,12 @@ describe('Layout', () => {
<Layout>
<h1>Some children</h1>
<h2>Hello!</h2>
</Layout>
</Layout>,
)

expect(Router.events.on).toHaveBeenCalledWith(
'routeChangeStart',
expect.any(Function)
expect.any(Function),
)
})

Expand All @@ -46,14 +46,14 @@ describe('Layout', () => {
<Layout>
<h1>Some children</h1>
<h2>Hello!</h2>
</Layout>
</Layout>,
)

wrapper.unmount()

expect(Router.events.on).toHaveBeenCalledWith(
'routeChangeStart',
expect.any(Function)
expect.any(Function),
)
})

Expand Down
2 changes: 1 addition & 1 deletion packages/website/src/pages/api/gitmojis/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { gitmojis } from 'gitmojis'

const getGitmojis = (
request: NextApiRequest,
response: NextApiResponse
response: NextApiResponse,
): void => {
const { method } = request

Expand Down
2 changes: 1 addition & 1 deletion packages/website/src/pages/api/gitmojis/schema.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { schema } from 'gitmojis'

const getGitmojis = (
request: NextApiRequest,
response: NextApiResponse
response: NextApiResponse,
): void => {
const { method } = request

Expand Down
4 changes: 2 additions & 2 deletions packages/website/src/pages/contributors.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ type Contributor = {
}

const Contributors = (
props: InferGetStaticPropsType<typeof getStaticProps>
props: InferGetStaticPropsType<typeof getStaticProps>,
) => (
<>
<SEO pageTitle="Contributors" pageUrl="/contributors" />
Expand All @@ -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()

Expand Down
28 changes: 24 additions & 4 deletions packages/website/src/utils/theme/theme.css
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand All @@ -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;
Expand Down
18 changes: 9 additions & 9 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 comment on commit d01df80

@vercel
Copy link

@vercel vercel bot commented on d01df80 Jul 25, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.