Skip to content

Commit c68eff9

Browse files
authored
chore: biome format (#2732)
Signed-off-by: Adam Setch <adam.setch@outlook.com>
1 parent 44e874a commit c68eff9

File tree

22 files changed

+46
-28
lines changed

22 files changed

+46
-28
lines changed

biome.json

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,13 @@
2828
":BLANK_LINE:",
2929
["**/constants", "**/constants/**"],
3030
":BLANK_LINE:",
31-
["**/context/**", "**/hooks/**", "**/routes/**"],
31+
[
32+
"**/context/**",
33+
"**/hooks/**",
34+
"**/routes/**",
35+
"**/stores",
36+
"**/stores/**"
37+
],
3238
":BLANK_LINE:",
3339
[
3440
"**/layout/**",
@@ -55,9 +61,6 @@
5561
},
5662
"rules": {
5763
"recommended": true,
58-
"a11y": {
59-
"useKeyWithClickEvents": "off"
60-
},
6164
"correctness": {
6265
"noUnusedFunctionParameters": "error",
6366
"useExhaustiveDependencies": {
@@ -111,6 +114,12 @@
111114
"tailwindDirectives": true
112115
}
113116
},
117+
"html": {
118+
"formatter": {
119+
"enabled": true
120+
},
121+
"experimentalFullSupportEnabled": true
122+
},
114123
"javascript": {
115124
"formatter": {
116125
"quoteStyle": "single",

src/renderer/__helpers__/test-utils.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ import { BaseStyles, ThemeProvider } from '@primer/react';
77
import { mockAuth, mockSettings } from '../__mocks__/state-mocks';
88

99
import { AppContext, type AppContextState } from '../context/App';
10-
1110
import { type FiltersStore, useFiltersStore } from '../stores';
1211

1312
export { navigateMock } from './vitest.setup';

src/renderer/components/AllRead.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@ import { type FC, useMemo } from 'react';
22

33
import { Constants } from '../constants';
44

5+
import { useFiltersStore } from '../stores';
6+
57
import { EmojiSplash } from './layout/EmojiSplash';
68

7-
import { useFiltersStore } from '../stores';
89
import { randomElement } from '../utils/core/random';
910

1011
interface AllReadProps {

src/renderer/components/Sidebar.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@ import { APPLICATION } from '../../shared/constants';
1717

1818
import { useAppContext } from '../hooks/useAppContext';
1919
import { useShortcutActions } from '../hooks/useShortcutActions';
20-
2120
import { useFiltersStore } from '../stores';
21+
2222
import { LogoIcon } from './icons/LogoIcon';
2323

2424
export const Sidebar: FC = () => {

src/renderer/components/filters/FilterSection.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ import { mockMultipleAccountNotifications } from '../../__mocks__/notifications-
88
import { mockSettings } from '../../__mocks__/state-mocks';
99

1010
import { useFiltersStore } from '../../stores';
11+
1112
import { stateFilter } from '../../utils/notifications/filters';
1213
import { FilterSection } from './FilterSection';
1314

src/renderer/components/filters/FilterSection.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ import type { Icon } from '@primer/octicons-react';
44
import { Stack, Text } from '@primer/react';
55

66
import { useAppContext } from '../../hooks/useAppContext';
7+
import { type FiltersState, useFiltersStore } from '../../stores';
78

89
import { Checkbox } from '../fields/Checkbox';
910
import { Title } from '../primitives/Title';
1011

11-
import { type FiltersState, useFiltersStore } from '../../stores';
1212
import type { Filter } from '../../utils/notifications/filters';
1313
import { RequiresDetailedNotificationWarning } from './RequiresDetailedNotificationsWarning';
1414

src/renderer/components/filters/SearchFilter.test.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ import { fireEvent, screen } from '@testing-library/react';
33
import { renderWithProviders } from '../../__helpers__/test-utils';
44

55
import { useFiltersStore } from '../../stores';
6+
67
import { SearchFilter } from './SearchFilter';
78

89
describe('renderer/components/filters/SearchFilter.tsx', () => {

src/renderer/components/filters/SearchFilter.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,12 @@ import {
1111
import { Stack, Text } from '@primer/react';
1212

1313
import { useAppContext } from '../../hooks/useAppContext';
14+
import { useFiltersStore } from '../../stores';
1415

1516
import { Title } from '../primitives/Title';
1617

1718
import { IconColor, type SearchToken, Size } from '../../types';
1819

19-
import { useFiltersStore } from '../../stores';
2020
import {
2121
hasExcludeSearchFilters,
2222
hasIncludeSearchFilters,

src/renderer/components/icons/LogoIcon.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export const LogoIcon: FC<LogoIconProps> = ({
2424
size = Size.SMALL,
2525
...props
2626
}: LogoIconProps) => (
27+
// biome-ignore lint/a11y/useKeyWithClickEvents: Logo is purely decorative
2728
<svg
2829
aria-hidden="true"
2930
aria-label={`${APPLICATION.NAME} Logo`}

src/renderer/context/App.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ import { Constants } from '../constants';
1414
import { useInactivityTimer } from '../hooks/timers/useInactivityTimer';
1515
import { useIntervalTimer } from '../hooks/timers/useIntervalTimer';
1616
import { useNotifications } from '../hooks/useNotifications';
17+
import { useFiltersStore } from '../stores';
1718

1819
import type {
1920
Account,
@@ -34,7 +35,6 @@ import type {
3435
LoginPersonalAccessTokenOptions,
3536
} from '../utils/auth/types';
3637

37-
import { useFiltersStore } from '../stores';
3838
import { fetchAuthenticatedUserDetails } from '../utils/api/client';
3939
import { clearOctokitClientCache } from '../utils/api/octokit';
4040
import {

0 commit comments

Comments
 (0)