Skip to content

Commit 0976961

Browse files
committed
Update Biome to 2.0
1 parent ffb0fc2 commit 0976961

File tree

7 files changed

+63
-53
lines changed

7 files changed

+63
-53
lines changed

biome.json

Lines changed: 19 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,15 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.9.0/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.0.0/schema.json",
33
"files": {
4-
"ignore": [".tsimp", ".yarn", "coverage", "dist", ".pnp.cjs", ".pnp.loader.mjs"]
4+
"includes": [
5+
"**",
6+
"!**/.tsimp",
7+
"!**/.yarn",
8+
"!**/coverage",
9+
"!**/dist",
10+
"!**/.pnp.cjs",
11+
"!**/.pnp.loader.mjs"
12+
]
513
},
614
"formatter": {
715
"lineWidth": 100,
@@ -14,10 +22,15 @@
1422
},
1523
"correctness": {
1624
"noUnusedImports": "warn",
17-
"noUnusedVariables": "warn"
25+
"noUnusedVariables": {
26+
"level": "warn",
27+
"options": {
28+
"ignoreRestSiblings": true
29+
}
30+
}
1831
},
1932
"suspicious": {
20-
"noConsoleLog": "warn"
33+
"noConsole": "warn"
2134
}
2235
}
2336
},
@@ -33,17 +46,11 @@
3346
},
3447
"overrides": [
3548
{
36-
"include": ["**/package.json"],
37-
"formatter": {
38-
"lineWidth": 1
39-
}
40-
},
41-
{
42-
"include": ["**/vite.config.ts"],
49+
"includes": ["**/vite.config.ts"],
4350
"linter": {
4451
"rules": {
4552
"suspicious": {
46-
"noConsoleLog": "off"
53+
"noConsole": "off"
4754
}
4855
}
4956
}

packages/react-datetime-picker/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@
7171
"react-time-picker": "^7.0.0"
7272
},
7373
"devDependencies": {
74-
"@biomejs/biome": "1.9.0",
74+
"@biomejs/biome": "2.0.0",
7575
"@testing-library/dom": "^10.0.0",
7676
"@testing-library/jest-dom": "^6.0.0",
7777
"@testing-library/react": "^16.0.0",

packages/react-datetime-picker/src/DateTimeInput.spec.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import DateTimeInput from './DateTimeInput.js';
66

77
import { muteConsole, restoreConsole } from '../../../test-utils.js';
88

9+
// biome-ignore lint/correctness/useHookAtTopLevel: False positive, see https://github.com/biomejs/biome/issues/6396
910
vi.useFakeTimers();
1011

1112
const hasFullICU = (() => {

packages/react-datetime-picker/src/DateTimeInput.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -864,6 +864,7 @@ export default function DateTimeInput({
864864

865865
return (
866866
// biome-ignore lint/a11y/useKeyWithClickEvents: This interaction is designed for mouse users only
867+
// biome-ignore lint/a11y/noStaticElementInteractions: This interaction is designed for mouse users only
867868
<div className={className} onClick={onClick}>
868869
{renderNativeInput()}
869870
{renderCustomInputsInternal()}

packages/react-datetime-picker/src/DateTimePicker.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -861,6 +861,7 @@ export default function DateTimePicker(props: DateTimePickerProps): React.ReactE
861861
);
862862

863863
return (
864+
// biome-ignore lint/a11y/noStaticElementInteractions: False positive caused by non interactive wrapper listening for bubbling events
864865
<div
865866
className={clsx(
866867
baseClassName,

test/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
"react-dom": "^18.2.0"
2626
},
2727
"devDependencies": {
28-
"@biomejs/biome": "1.9.0",
28+
"@biomejs/biome": "2.0.0",
2929
"@types/react": "*",
3030
"@vitejs/plugin-react": "^4.3.4",
3131
"typescript": "^5.5.2",

yarn.lock

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -226,18 +226,18 @@ __metadata:
226226
languageName: node
227227
linkType: hard
228228

229-
"@biomejs/biome@npm:1.9.0":
230-
version: 1.9.0
231-
resolution: "@biomejs/biome@npm:1.9.0"
232-
dependencies:
233-
"@biomejs/cli-darwin-arm64": "npm:1.9.0"
234-
"@biomejs/cli-darwin-x64": "npm:1.9.0"
235-
"@biomejs/cli-linux-arm64": "npm:1.9.0"
236-
"@biomejs/cli-linux-arm64-musl": "npm:1.9.0"
237-
"@biomejs/cli-linux-x64": "npm:1.9.0"
238-
"@biomejs/cli-linux-x64-musl": "npm:1.9.0"
239-
"@biomejs/cli-win32-arm64": "npm:1.9.0"
240-
"@biomejs/cli-win32-x64": "npm:1.9.0"
229+
"@biomejs/biome@npm:2.0.0":
230+
version: 2.0.0
231+
resolution: "@biomejs/biome@npm:2.0.0"
232+
dependencies:
233+
"@biomejs/cli-darwin-arm64": "npm:2.0.0"
234+
"@biomejs/cli-darwin-x64": "npm:2.0.0"
235+
"@biomejs/cli-linux-arm64": "npm:2.0.0"
236+
"@biomejs/cli-linux-arm64-musl": "npm:2.0.0"
237+
"@biomejs/cli-linux-x64": "npm:2.0.0"
238+
"@biomejs/cli-linux-x64-musl": "npm:2.0.0"
239+
"@biomejs/cli-win32-arm64": "npm:2.0.0"
240+
"@biomejs/cli-win32-x64": "npm:2.0.0"
241241
dependenciesMeta:
242242
"@biomejs/cli-darwin-arm64":
243243
optional: true
@@ -257,62 +257,62 @@ __metadata:
257257
optional: true
258258
bin:
259259
biome: bin/biome
260-
checksum: 10c0/b07ad2c8dc3d52c0a4eea37f98d36399b33a13759903aa65f9678db916810b773fe94937c304899158479bccd8c3c90f0f30af22b34d6dc5963774f1acc5e245
260+
checksum: 10c0/a255d2e84e303c6b1bd841877463f358415a35fb39dc4051dec80d9dd44e4f2f546e7e13804f7cd9f0932ca11664600f819e0b0dd75c55c2c0571ed771d86cb5
261261
languageName: node
262262
linkType: hard
263263

264-
"@biomejs/cli-darwin-arm64@npm:1.9.0":
265-
version: 1.9.0
266-
resolution: "@biomejs/cli-darwin-arm64@npm:1.9.0"
264+
"@biomejs/cli-darwin-arm64@npm:2.0.0":
265+
version: 2.0.0
266+
resolution: "@biomejs/cli-darwin-arm64@npm:2.0.0"
267267
conditions: os=darwin & cpu=arm64
268268
languageName: node
269269
linkType: hard
270270

271-
"@biomejs/cli-darwin-x64@npm:1.9.0":
272-
version: 1.9.0
273-
resolution: "@biomejs/cli-darwin-x64@npm:1.9.0"
271+
"@biomejs/cli-darwin-x64@npm:2.0.0":
272+
version: 2.0.0
273+
resolution: "@biomejs/cli-darwin-x64@npm:2.0.0"
274274
conditions: os=darwin & cpu=x64
275275
languageName: node
276276
linkType: hard
277277

278-
"@biomejs/cli-linux-arm64-musl@npm:1.9.0":
279-
version: 1.9.0
280-
resolution: "@biomejs/cli-linux-arm64-musl@npm:1.9.0"
278+
"@biomejs/cli-linux-arm64-musl@npm:2.0.0":
279+
version: 2.0.0
280+
resolution: "@biomejs/cli-linux-arm64-musl@npm:2.0.0"
281281
conditions: os=linux & cpu=arm64 & libc=musl
282282
languageName: node
283283
linkType: hard
284284

285-
"@biomejs/cli-linux-arm64@npm:1.9.0":
286-
version: 1.9.0
287-
resolution: "@biomejs/cli-linux-arm64@npm:1.9.0"
285+
"@biomejs/cli-linux-arm64@npm:2.0.0":
286+
version: 2.0.0
287+
resolution: "@biomejs/cli-linux-arm64@npm:2.0.0"
288288
conditions: os=linux & cpu=arm64 & libc=glibc
289289
languageName: node
290290
linkType: hard
291291

292-
"@biomejs/cli-linux-x64-musl@npm:1.9.0":
293-
version: 1.9.0
294-
resolution: "@biomejs/cli-linux-x64-musl@npm:1.9.0"
292+
"@biomejs/cli-linux-x64-musl@npm:2.0.0":
293+
version: 2.0.0
294+
resolution: "@biomejs/cli-linux-x64-musl@npm:2.0.0"
295295
conditions: os=linux & cpu=x64 & libc=musl
296296
languageName: node
297297
linkType: hard
298298

299-
"@biomejs/cli-linux-x64@npm:1.9.0":
300-
version: 1.9.0
301-
resolution: "@biomejs/cli-linux-x64@npm:1.9.0"
299+
"@biomejs/cli-linux-x64@npm:2.0.0":
300+
version: 2.0.0
301+
resolution: "@biomejs/cli-linux-x64@npm:2.0.0"
302302
conditions: os=linux & cpu=x64 & libc=glibc
303303
languageName: node
304304
linkType: hard
305305

306-
"@biomejs/cli-win32-arm64@npm:1.9.0":
307-
version: 1.9.0
308-
resolution: "@biomejs/cli-win32-arm64@npm:1.9.0"
306+
"@biomejs/cli-win32-arm64@npm:2.0.0":
307+
version: 2.0.0
308+
resolution: "@biomejs/cli-win32-arm64@npm:2.0.0"
309309
conditions: os=win32 & cpu=arm64
310310
languageName: node
311311
linkType: hard
312312

313-
"@biomejs/cli-win32-x64@npm:1.9.0":
314-
version: 1.9.0
315-
resolution: "@biomejs/cli-win32-x64@npm:1.9.0"
313+
"@biomejs/cli-win32-x64@npm:2.0.0":
314+
version: 2.0.0
315+
resolution: "@biomejs/cli-win32-x64@npm:2.0.0"
316316
conditions: os=win32 & cpu=x64
317317
languageName: node
318318
linkType: hard
@@ -2537,7 +2537,7 @@ __metadata:
25372537
version: 0.0.0-use.local
25382538
resolution: "react-datetime-picker@workspace:packages/react-datetime-picker"
25392539
dependencies:
2540-
"@biomejs/biome": "npm:1.9.0"
2540+
"@biomejs/biome": "npm:2.0.0"
25412541
"@testing-library/dom": "npm:^10.0.0"
25422542
"@testing-library/jest-dom": "npm:^6.0.0"
25432543
"@testing-library/react": "npm:^16.0.0"
@@ -2999,7 +2999,7 @@ __metadata:
29992999
version: 0.0.0-use.local
30003000
resolution: "test@workspace:test"
30013001
dependencies:
3002-
"@biomejs/biome": "npm:1.9.0"
3002+
"@biomejs/biome": "npm:2.0.0"
30033003
"@types/react": "npm:*"
30043004
"@vitejs/plugin-react": "npm:^4.3.4"
30053005
"@wojtekmaj/date-utils": "npm:^1.1.3"

0 commit comments

Comments
 (0)