Skip to content

Commit ed47f40

Browse files
authored
chore(deps): bump prettier to v3.0.3 (#608)
1 parent dcfeb40 commit ed47f40

37 files changed

+220
-220
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@
143143
"nock": "^13.0.5",
144144
"postcss": "^8.4.30",
145145
"postcss-loader": "^4.1.0",
146-
"prettier": "^2.8.8",
146+
"prettier": "^3.0.3",
147147
"react-test-renderer": "=16.14.0",
148148
"style-loader": "^3.3.3",
149149
"tailwindcss": "^3.3.3",

pnpm-lock.yaml

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/components/AllRead.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const AllRead = () => {
99
Constants.ALLREAD_EMOJIS[
1010
Math.floor(Math.random() * Constants.ALLREAD_EMOJIS.length)
1111
],
12-
[]
12+
[],
1313
);
1414

1515
return (

src/components/Loading.test.tsx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe('components/Loading.js', () => {
2626
const { container } = render(
2727
<AppContext.Provider value={{ isFetching: true }}>
2828
<Loading />
29-
</AppContext.Provider>
29+
</AppContext.Provider>,
3030
);
3131

3232
expect(container.innerHTML).toBe('');
@@ -38,7 +38,7 @@ describe('components/Loading.js', () => {
3838
const { container } = render(
3939
<AppContext.Provider value={{ isFetching: false }}>
4040
<Loading />
41-
</AppContext.Provider>
41+
</AppContext.Provider>,
4242
);
4343

4444
expect(container.innerHTML).toBe('');
@@ -50,7 +50,7 @@ describe('components/Loading.js', () => {
5050
const { unmount } = render(
5151
<AppContext.Provider value={{ isFetching: true }}>
5252
<Loading />
53-
</AppContext.Provider>
53+
</AppContext.Provider>,
5454
);
5555
expect(NProgress.remove).toHaveBeenCalledTimes(0);
5656
unmount();

src/components/NotificationRow.test.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ describe('components/Notification.js', () => {
4343
}}
4444
>
4545
<NotificationRow {...props} />
46-
</AppContext.Provider>
46+
</AppContext.Provider>,
4747
);
4848

4949
fireEvent.click(getByRole('main'));
@@ -67,7 +67,7 @@ describe('components/Notification.js', () => {
6767
}}
6868
>
6969
<NotificationRow {...props} />
70-
</AppContext.Provider>
70+
</AppContext.Provider>,
7171
);
7272

7373
fireEvent.click(getByRole('main'));
@@ -93,7 +93,7 @@ describe('components/Notification.js', () => {
9393
<AppContext.Provider value={{ markNotification }}>
9494
<NotificationRow {...props} />
9595
</AppContext.Provider>
96-
</AppContext.Provider>
96+
</AppContext.Provider>,
9797
);
9898

9999
fireEvent.click(getByTitle('Mark as Read'));
@@ -113,7 +113,7 @@ describe('components/Notification.js', () => {
113113
<AppContext.Provider value={{ unsubscribeNotification }}>
114114
<NotificationRow {...props} />
115115
</AppContext.Provider>
116-
</AppContext.Provider>
116+
</AppContext.Provider>,
117117
);
118118
fireEvent.click(getByLabelText('Unsubscribe'));
119119
expect(unsubscribeNotification).toHaveBeenCalledTimes(1);

src/components/NotificationRow.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export const NotificationRow: React.FC<IProps> = ({
3333

3434
const openBrowser = useCallback(
3535
() => openInBrowser(notification, accounts),
36-
[notification]
36+
[notification],
3737
);
3838

3939
const unsubscribe = (event: React.MouseEvent<HTMLElement>) => {

src/components/Oops.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export const Oops = () => {
99
Constants.ERROR_EMOJIS[
1010
Math.floor(Math.random() * Constants.ERROR_EMOJIS.length)
1111
],
12-
[]
12+
[],
1313
);
1414

1515
return (

src/components/Repository.test.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ describe('components/Repository.tsx', () => {
3131
const tree = TestRenderer.create(
3232
<AppContext.Provider value={{}}>
3333
<RepositoryNotifications {...props} />
34-
</AppContext.Provider>
34+
</AppContext.Provider>,
3535
);
3636
expect(tree).toMatchSnapshot();
3737
});
@@ -40,29 +40,29 @@ describe('components/Repository.tsx', () => {
4040
const { getByText } = render(
4141
<AppContext.Provider value={{}}>
4242
<RepositoryNotifications {...props} />
43-
</AppContext.Provider>
43+
</AppContext.Provider>,
4444
);
4545

4646
fireEvent.click(getByText(props.repoName));
4747

4848
expect(shell.openExternal).toHaveBeenCalledTimes(1);
4949
expect(shell.openExternal).toHaveBeenCalledWith(
50-
'https://github.com/manosim/notifications-test'
50+
'https://github.com/manosim/notifications-test',
5151
);
5252
});
5353

5454
it('should mark a repo as read', function () {
5555
const { getByRole } = render(
5656
<AppContext.Provider value={{ markRepoNotifications }}>
5757
<RepositoryNotifications {...props} />
58-
</AppContext.Provider>
58+
</AppContext.Provider>,
5959
);
6060

6161
fireEvent.click(getByRole('button'));
6262

6363
expect(markRepoNotifications).toHaveBeenCalledWith(
6464
'manosim/notifications-test',
65-
'github.com'
65+
'github.com',
6666
);
6767
});
6868
});

src/components/Sidebar.test.tsx

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ describe('components/Sidebar.tsx', () => {
3535
<MemoryRouter>
3636
<Sidebar />
3737
</MemoryRouter>
38-
</AppContext.Provider>
38+
</AppContext.Provider>,
3939
);
4040
expect(tree).toMatchSnapshot();
4141
});
@@ -48,7 +48,7 @@ describe('components/Sidebar.tsx', () => {
4848
<MemoryRouter>
4949
<Sidebar />
5050
</MemoryRouter>
51-
</AppContext.Provider>
51+
</AppContext.Provider>,
5252
);
5353
expect(tree).toMatchSnapshot();
5454
});
@@ -61,7 +61,7 @@ describe('components/Sidebar.tsx', () => {
6161
<MemoryRouter>
6262
<Sidebar />
6363
</MemoryRouter>
64-
</AppContext.Provider>
64+
</AppContext.Provider>,
6565
);
6666
fetchNotifications.mockReset();
6767
fireEvent.click(getByLabelText('Refresh Notifications'));
@@ -76,7 +76,7 @@ describe('components/Sidebar.tsx', () => {
7676
<Router history={history}>
7777
<Sidebar />
7878
</Router>
79-
</AppContext.Provider>
79+
</AppContext.Provider>,
8080
);
8181
fireEvent.click(getByLabelText('Settings'));
8282
expect(pushMock).toHaveBeenCalledTimes(1);
@@ -93,12 +93,12 @@ describe('components/Sidebar.tsx', () => {
9393
<MemoryRouter>
9494
<Sidebar />
9595
</MemoryRouter>
96-
</AppContext.Provider>
96+
</AppContext.Provider>,
9797
);
9898
fireEvent.click(getByLabelText('4 Unread Notifications'));
9999
expect(shell.openExternal).toHaveBeenCalledTimes(1);
100100
expect(shell.openExternal).toHaveBeenCalledWith(
101-
'https://github.com/notifications'
101+
'https://github.com/notifications',
102102
);
103103
});
104104

@@ -108,7 +108,7 @@ describe('components/Sidebar.tsx', () => {
108108
<MemoryRouter>
109109
<Sidebar />
110110
</MemoryRouter>
111-
</AppContext.Provider>
111+
</AppContext.Provider>,
112112
);
113113
fireEvent.click(getByLabelText('Quit App'));
114114
expect(ipcRenderer.send).toHaveBeenCalledTimes(1);
@@ -121,12 +121,12 @@ describe('components/Sidebar.tsx', () => {
121121
<MemoryRouter>
122122
<Sidebar />
123123
</MemoryRouter>
124-
</AppContext.Provider>
124+
</AppContext.Provider>,
125125
);
126126
fireEvent.click(screen.getByTestId('gitify-logo'));
127127
expect(shell.openExternal).toHaveBeenCalledTimes(1);
128128
expect(shell.openExternal).toHaveBeenCalledWith(
129-
'https://github.com/gitify-app/gitify'
129+
'https://github.com/gitify-app/gitify',
130130
);
131131
});
132132

@@ -137,7 +137,7 @@ describe('components/Sidebar.tsx', () => {
137137
<MemoryRouter>
138138
<Sidebar />
139139
</MemoryRouter>
140-
</AppContext.Provider>
140+
</AppContext.Provider>,
141141
);
142142

143143
const notificationsIcon = getByLabelText('0 Unread Notifications');
@@ -157,7 +157,7 @@ describe('components/Sidebar.tsx', () => {
157157
<MemoryRouter>
158158
<Sidebar />
159159
</MemoryRouter>
160-
</AppContext.Provider>
160+
</AppContext.Provider>,
161161
);
162162

163163
const notificationsIcon = getByLabelText('4 Unread Notifications');

src/components/Sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ export const Sidebar: React.FC = () => {
3232
const notificationsCount = useMemo(() => {
3333
return notifications.reduce(
3434
(memo, account) => memo + account.notifications.length,
35-
0
35+
0,
3636
);
3737
}, [notifications]);
3838

0 commit comments

Comments
 (0)