Skip to content

Commit c864837

Browse files
committed
Update Biome to 2.0
1 parent 7fd8af9 commit c864837

File tree

5 files changed

+61
-53
lines changed

5 files changed

+61
-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-async-button/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@
3636
"make-cancellable-promise": "^2.0.0"
3737
},
3838
"devDependencies": {
39-
"@biomejs/biome": "1.9.0",
39+
"@biomejs/biome": "2.0.0",
4040
"@testing-library/dom": "^10.0.0",
4141
"@testing-library/jest-dom": "^6.0.0",
4242
"@testing-library/react": "^16.0.0",

packages/react-async-button/src/AsyncButton.spec.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@ import { userEvent } from '@testing-library/user-event';
55

66
import AsyncButton from './index.js';
77

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

1011
const pendingConfig = {

test/package.json

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

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
@@ -1059,7 +1059,7 @@ __metadata:
10591059
version: 0.0.0-use.local
10601060
resolution: "@wojtekmaj/react-async-button@workspace:packages/react-async-button"
10611061
dependencies:
1062-
"@biomejs/biome": "npm:1.9.0"
1062+
"@biomejs/biome": "npm:2.0.0"
10631063
"@testing-library/dom": "npm:^10.0.0"
10641064
"@testing-library/jest-dom": "npm:^6.0.0"
10651065
"@testing-library/react": "npm:^16.0.0"
@@ -2547,7 +2547,7 @@ __metadata:
25472547
version: 0.0.0-use.local
25482548
resolution: "test@workspace:test"
25492549
dependencies:
2550-
"@biomejs/biome": "npm:1.9.0"
2550+
"@biomejs/biome": "npm:2.0.0"
25512551
"@types/react": "npm:*"
25522552
"@types/styled-components": "npm:^5.1.26"
25532553
"@vitejs/plugin-react": "npm:^4.3.4"

0 commit comments

Comments
 (0)