Skip to content

Commit fbfb49d

Browse files
committed
fix: apply prettier formatting
1 parent a1b53e2 commit fbfb49d

File tree

6 files changed

+9957
-5804
lines changed

6 files changed

+9957
-5804
lines changed

.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,4 +45,5 @@ dist
4545

4646
# Prettier's Handlebar parser is limited and chokes on some syntax features
4747
# https://github.com/prettier/prettier/issues/11834
48-
scripts/release-post/template.hbs
48+
# scripts/release-post/template.hbs
49+
apps/site/scripts/release-post/template.hbs

apps/site/hooks/client/__tests__/useScrollToElement.test.jsx

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ describe('useScrollToElement', () => {
1212

1313
beforeEach(() => {
1414
navigationState = {};
15-
15+
1616
mockElement = {
1717
scrollTop: 0,
1818
scrollLeft: 0,
@@ -37,7 +37,10 @@ describe('useScrollToElement', () => {
3737

3838
// Should restore scroll position on mount if saved state exists
3939
navigationState.sidebar = { x: 100, y: 200 };
40-
const { unmount: unmount1 } = renderHook(() => useScrollToElement('sidebar', mockRef), { wrapper });
40+
const { unmount: unmount1 } = renderHook(
41+
() => useScrollToElement('sidebar', mockRef),
42+
{ wrapper }
43+
);
4144

4245
assert.equal(mockElement.scroll.mock.callCount(), 1);
4346
assert.deepEqual(mockElement.scroll.mock.calls[0].arguments, [
@@ -50,7 +53,10 @@ describe('useScrollToElement', () => {
5053

5154
// Should not restore if no saved state exists
5255
navigationState = {};
53-
const { unmount: unmount2 } = renderHook(() => useScrollToElement('sidebar', mockRef), { wrapper });
56+
const { unmount: unmount2 } = renderHook(
57+
() => useScrollToElement('sidebar', mockRef),
58+
{ wrapper }
59+
);
5460
assert.equal(mockElement.scroll.mock.callCount(), 0);
5561

5662
unmount2();
@@ -60,7 +66,10 @@ describe('useScrollToElement', () => {
6066
// Should not restore if current position matches saved state
6167
navigationState.sidebar = { x: 0, y: 0 };
6268
mockElement.scrollTop = 0;
63-
const { unmount: unmount3 } = renderHook(() => useScrollToElement('sidebar', mockRef), { wrapper });
69+
const { unmount: unmount3 } = renderHook(
70+
() => useScrollToElement('sidebar', mockRef),
71+
{ wrapper }
72+
);
6473
assert.equal(mockElement.scroll.mock.callCount(), 0);
6574

6675
unmount3();
@@ -86,9 +95,13 @@ describe('useScrollToElement', () => {
8695
);
8796

8897
// First render: user scrolls to position 800
89-
const { unmount } = renderHook(() => useScrollToElement('sidebar', mockRef), { wrapper });
98+
const { unmount } = renderHook(
99+
() => useScrollToElement('sidebar', mockRef),
100+
{ wrapper }
101+
);
90102

91-
const scrollHandler = mockElement.addEventListener.mock.calls[0].arguments[1];
103+
const scrollHandler =
104+
mockElement.addEventListener.mock.calls[0].arguments[1];
92105
mockElement.scrollTop = 800;
93106
mockElement.scrollLeft = 0;
94107
scrollHandler();
@@ -127,7 +140,8 @@ describe('useScrollToElement', () => {
127140
renderHook(() => useScrollToElement('sidebar', mockRef), { wrapper });
128141

129142
// Get the scroll handler that was registered
130-
const scrollHandler2 = mockElement.addEventListener.mock.calls[0].arguments[1];
143+
const scrollHandler2 =
144+
mockElement.addEventListener.mock.calls[0].arguments[1];
131145

132146
// Simulate scroll
133147
mockElement.scrollTop = 150;

apps/site/scripts/release-post/index.mjs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
*
1818
* Happy releasing!
1919
*/
20-
2120
'use strict';
2221

2322
import { existsSync, readFileSync, appendFileSync } from 'node:fs';

packages/ui-components/__design__/social-logos.stories.tsx

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,8 @@
1-
import {
2-
Bluesky,
3-
Discord,
4-
GitHub,
5-
LinkedIn,
6-
Slack,
7-
X,
8-
} from '#ui/Icons/Social';
1+
import { Bluesky, Discord, GitHub, LinkedIn, Slack, X } from '#ui/Icons/Social';
92

103
import type { Meta as MetaObj, StoryObj } from '@storybook/react-webpack5';
114

12-
const socialIcons = [
13-
[GitHub, LinkedIn],
14-
[Slack, X, Bluesky],
15-
[Discord],
16-
];
5+
const socialIcons = [[GitHub, LinkedIn], [Slack, X, Bluesky], [Discord]];
176

187
export const SocialMediaLogos: StoryObj = {
198
render: () => (

packages/ui-components/src/Containers/Footer/index.tsx

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,7 @@
11
import classNames from 'classnames';
22

33
import NavItem from '#ui/Containers/NavBar/NavItem';
4-
import {
5-
Bluesky,
6-
Discord,
7-
GitHub,
8-
LinkedIn,
9-
Slack,
10-
X,
11-
} from '#ui/Icons/Social';
4+
import { Bluesky, Discord, GitHub, LinkedIn, Slack, X } from '#ui/Icons/Social';
125

136
import type { LinkLike } from '#ui/types';
147
import type { FC, ReactNode, SVGProps } from 'react';

0 commit comments

Comments
 (0)