Skip to content

Commit 6ef496f

Browse files
committed
Update Biome to 2.0
1 parent 056a0c5 commit 6ef496f

File tree

3 files changed

+58
-51
lines changed

3 files changed

+58
-51
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
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
},
3535
"license": "MIT",
3636
"devDependencies": {
37-
"@biomejs/biome": "1.9.0",
37+
"@biomejs/biome": "2.0.0",
3838
"husky": "^9.0.0",
3939
"typescript": "^5.5.2",
4040
"vitest": "^3.2.3"

yarn.lock

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,18 @@ __metadata:
55
version: 8
66
cacheKey: 10c0
77

8-
"@biomejs/biome@npm:1.9.0":
9-
version: 1.9.0
10-
resolution: "@biomejs/biome@npm:1.9.0"
11-
dependencies:
12-
"@biomejs/cli-darwin-arm64": "npm:1.9.0"
13-
"@biomejs/cli-darwin-x64": "npm:1.9.0"
14-
"@biomejs/cli-linux-arm64": "npm:1.9.0"
15-
"@biomejs/cli-linux-arm64-musl": "npm:1.9.0"
16-
"@biomejs/cli-linux-x64": "npm:1.9.0"
17-
"@biomejs/cli-linux-x64-musl": "npm:1.9.0"
18-
"@biomejs/cli-win32-arm64": "npm:1.9.0"
19-
"@biomejs/cli-win32-x64": "npm:1.9.0"
8+
"@biomejs/biome@npm:2.0.0":
9+
version: 2.0.0
10+
resolution: "@biomejs/biome@npm:2.0.0"
11+
dependencies:
12+
"@biomejs/cli-darwin-arm64": "npm:2.0.0"
13+
"@biomejs/cli-darwin-x64": "npm:2.0.0"
14+
"@biomejs/cli-linux-arm64": "npm:2.0.0"
15+
"@biomejs/cli-linux-arm64-musl": "npm:2.0.0"
16+
"@biomejs/cli-linux-x64": "npm:2.0.0"
17+
"@biomejs/cli-linux-x64-musl": "npm:2.0.0"
18+
"@biomejs/cli-win32-arm64": "npm:2.0.0"
19+
"@biomejs/cli-win32-x64": "npm:2.0.0"
2020
dependenciesMeta:
2121
"@biomejs/cli-darwin-arm64":
2222
optional: true
@@ -36,62 +36,62 @@ __metadata:
3636
optional: true
3737
bin:
3838
biome: bin/biome
39-
checksum: 10c0/b07ad2c8dc3d52c0a4eea37f98d36399b33a13759903aa65f9678db916810b773fe94937c304899158479bccd8c3c90f0f30af22b34d6dc5963774f1acc5e245
39+
checksum: 10c0/a255d2e84e303c6b1bd841877463f358415a35fb39dc4051dec80d9dd44e4f2f546e7e13804f7cd9f0932ca11664600f819e0b0dd75c55c2c0571ed771d86cb5
4040
languageName: node
4141
linkType: hard
4242

43-
"@biomejs/cli-darwin-arm64@npm:1.9.0":
44-
version: 1.9.0
45-
resolution: "@biomejs/cli-darwin-arm64@npm:1.9.0"
43+
"@biomejs/cli-darwin-arm64@npm:2.0.0":
44+
version: 2.0.0
45+
resolution: "@biomejs/cli-darwin-arm64@npm:2.0.0"
4646
conditions: os=darwin & cpu=arm64
4747
languageName: node
4848
linkType: hard
4949

50-
"@biomejs/cli-darwin-x64@npm:1.9.0":
51-
version: 1.9.0
52-
resolution: "@biomejs/cli-darwin-x64@npm:1.9.0"
50+
"@biomejs/cli-darwin-x64@npm:2.0.0":
51+
version: 2.0.0
52+
resolution: "@biomejs/cli-darwin-x64@npm:2.0.0"
5353
conditions: os=darwin & cpu=x64
5454
languageName: node
5555
linkType: hard
5656

57-
"@biomejs/cli-linux-arm64-musl@npm:1.9.0":
58-
version: 1.9.0
59-
resolution: "@biomejs/cli-linux-arm64-musl@npm:1.9.0"
57+
"@biomejs/cli-linux-arm64-musl@npm:2.0.0":
58+
version: 2.0.0
59+
resolution: "@biomejs/cli-linux-arm64-musl@npm:2.0.0"
6060
conditions: os=linux & cpu=arm64 & libc=musl
6161
languageName: node
6262
linkType: hard
6363

64-
"@biomejs/cli-linux-arm64@npm:1.9.0":
65-
version: 1.9.0
66-
resolution: "@biomejs/cli-linux-arm64@npm:1.9.0"
64+
"@biomejs/cli-linux-arm64@npm:2.0.0":
65+
version: 2.0.0
66+
resolution: "@biomejs/cli-linux-arm64@npm:2.0.0"
6767
conditions: os=linux & cpu=arm64 & libc=glibc
6868
languageName: node
6969
linkType: hard
7070

71-
"@biomejs/cli-linux-x64-musl@npm:1.9.0":
72-
version: 1.9.0
73-
resolution: "@biomejs/cli-linux-x64-musl@npm:1.9.0"
71+
"@biomejs/cli-linux-x64-musl@npm:2.0.0":
72+
version: 2.0.0
73+
resolution: "@biomejs/cli-linux-x64-musl@npm:2.0.0"
7474
conditions: os=linux & cpu=x64 & libc=musl
7575
languageName: node
7676
linkType: hard
7777

78-
"@biomejs/cli-linux-x64@npm:1.9.0":
79-
version: 1.9.0
80-
resolution: "@biomejs/cli-linux-x64@npm:1.9.0"
78+
"@biomejs/cli-linux-x64@npm:2.0.0":
79+
version: 2.0.0
80+
resolution: "@biomejs/cli-linux-x64@npm:2.0.0"
8181
conditions: os=linux & cpu=x64 & libc=glibc
8282
languageName: node
8383
linkType: hard
8484

85-
"@biomejs/cli-win32-arm64@npm:1.9.0":
86-
version: 1.9.0
87-
resolution: "@biomejs/cli-win32-arm64@npm:1.9.0"
85+
"@biomejs/cli-win32-arm64@npm:2.0.0":
86+
version: 2.0.0
87+
resolution: "@biomejs/cli-win32-arm64@npm:2.0.0"
8888
conditions: os=win32 & cpu=arm64
8989
languageName: node
9090
linkType: hard
9191

92-
"@biomejs/cli-win32-x64@npm:1.9.0":
93-
version: 1.9.0
94-
resolution: "@biomejs/cli-win32-x64@npm:1.9.0"
92+
"@biomejs/cli-win32-x64@npm:2.0.0":
93+
version: 2.0.0
94+
resolution: "@biomejs/cli-win32-x64@npm:2.0.0"
9595
conditions: os=win32 & cpu=x64
9696
languageName: node
9797
linkType: hard
@@ -580,7 +580,7 @@ __metadata:
580580
version: 0.0.0-use.local
581581
resolution: "@wojtekmaj/async-array-utils@workspace:."
582582
dependencies:
583-
"@biomejs/biome": "npm:1.9.0"
583+
"@biomejs/biome": "npm:2.0.0"
584584
husky: "npm:^9.0.0"
585585
typescript: "npm:^5.5.2"
586586
vitest: "npm:^3.2.3"

0 commit comments

Comments
 (0)