Skip to content

Commit 2aaa57b

Browse files
authored
chore(deps): Bump biome (#320)
* chore(deps): bump biome * bump to 2.4.7
1 parent 27f67ee commit 2aaa57b

File tree

12 files changed

+75
-72
lines changed

12 files changed

+75
-72
lines changed

.node-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
18.17
1+
22

biome.json

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,13 @@
1313
"noImplicitBoolean": "off",
1414
"noShoutyConstants": "warn",
1515
"useBlockStatements": "warn",
16-
"useShorthandArrayType": "warn"
16+
"useConsistentArrayType": {
17+
"level": "warn",
18+
"options": { "syntax": "shorthand" }
19+
}
20+
},
21+
"a11y": {
22+
"useSemanticElements": "off"
1723
}
1824
}
1925
},
@@ -23,7 +29,7 @@
2329
"indentStyle": "space",
2430
"indentWidth": 2,
2531
"lineWidth": 80,
26-
"ignore": []
32+
"includes": ["**"]
2733
},
2834
"javascript": {
2935
"formatter": {

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,13 @@
99
"build": "tsc && vite build",
1010
"serve": "vite preview",
1111
"lint": "yarn biome check src/",
12-
"lint:fix": "yarn biome check src/ --apply",
12+
"lint:fix": "yarn biome check src/ --write",
1313
"format": "yarn biome format src/ --write",
1414
"ci": "yarn biome ci src/",
1515
"test": "vitest run --coverage"
1616
},
1717
"dependencies": {
18-
"@biomejs/biome": "1.9.4",
18+
"@biomejs/biome": "^2.4.7",
1919
"@testing-library/react": "^16.3.0",
2020
"@testing-library/user-event": "^14.6.1",
2121
"axios": "^1.9.0",

src/components/Loader/Loader.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ const Loader = () => (
88
aria-valuenow={0}
99
aria-valuemin={0}
1010
aria-valuemax={100}
11-
tabIndex={0}
1211
/>
1312
);
1413

src/components/Player/Player.module.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
.Player {
2-
grid-row: 2/3;
3-
grid-column: 1/3;
2+
grid-row: 2 / 3;
3+
grid-column: 1 / 3;
44
background-color: var(--bg-secondary);
55
z-index: 4;
66
height: 90px;

src/components/Player/Player.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,6 @@ const Player = () => {
128128
onClick={(event) => barCallBack(event, volumeRef, setVolume)}
129129
onKeyDown={() => setMute(!mute)}
130130
ref={volumeRef}
131-
// biome-ignore lint/a11y/useSemanticElements: clickable div is fine
132131
role="button"
133132
tabIndex={0}
134133
>

src/index.scss

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
body {
22
margin: 0;
3-
font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen',
4-
'Ubuntu', 'Cantarell', 'Fira Sans', 'Droid Sans', 'Helvetica Neue',
5-
sans-serif;
3+
font-family:
4+
-apple-system, BlinkMacSystemFont, "Segoe UI", "Roboto", "Oxygen", "Ubuntu",
5+
"Cantarell", "Fira Sans", "Droid Sans", "Helvetica Neue", sans-serif;
66
-webkit-font-smoothing: antialiased;
77
-moz-osx-font-smoothing: grayscale;
88
background-color: rgb(18, 18, 18);
@@ -13,8 +13,8 @@ body {
1313
}
1414

1515
code {
16-
font-family: source-code-pro, Menlo, Monaco, Consolas, 'Courier New',
17-
monospace;
16+
font-family:
17+
source-code-pro, Menlo, Monaco, Consolas, "Courier New", monospace;
1818
}
1919

2020
:root {

src/index.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import App from './App';
44
import './index.scss';
55

66
const container = document.getElementById('root');
7-
// biome-ignore lint/style/noNonNullAssertion: <explanation>
7+
// biome-ignore lint/style/noNonNullAssertion: We are sure that the element with id 'root' exists in our HTML, so we can safely use the non-null assertion operator here
88
const root = createRoot(container!);
99
root.render(
1010
<React.StrictMode>

src/pages/PlaylistDetail/SongItem/SongItem.module.scss

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,8 @@
6868
.NameContainer {
6969
display: grid;
7070
grid-template:
71-
'title title'
72-
'badges subtitle' / auto 1fr;
71+
"title title"
72+
"badges subtitle" / auto 1fr;
7373
column-gap: 8px;
7474
align-items: end;
7575
height: 40px;

src/pages/PlaylistDetail/SongItem/SongItem.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ const SongItem = ({ song, index, current }: SongItemPros) => {
2828
styles.Item,
2929
previewAvailable ? styles.Enabled : styles.Disabled,
3030
].join(' ')}
31-
// biome-ignore lint/a11y/useSemanticElements: clickable div is fine
3231
role="button"
3332
tabIndex={0}
3433
onClick={handleSongClick}

0 commit comments

Comments
 (0)