Skip to content

Commit a40570b

Browse files
authored
Upgrade biome to 2.3.11 (#8193)
1 parent cba7ed7 commit a40570b

File tree

7 files changed

+71
-88
lines changed

7 files changed

+71
-88
lines changed

biome.json

Lines changed: 30 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.3.11/schema.json",
33
"vcs": {
44
"enabled": true,
55
"clientKind": "git",
@@ -11,11 +11,10 @@
1111
"rules": {
1212
"recommended": true,
1313
"style": {
14-
"useTemplate": "off"
15-
},
16-
"nursery": {
14+
"useTemplate": "off",
1715
"noCommonJs": "error"
1816
},
17+
"nursery": {},
1918
"suspicious": {
2019
"noAssignInExpressions": "warn"
2120
},
@@ -27,9 +26,7 @@
2726
}
2827
}
2928
},
30-
"organizeImports": {
31-
"enabled": true
32-
},
29+
"assist": { "actions": { "source": { "organizeImports": "on" } } },
3330
"formatter": {
3431
"enabled": true,
3532
"formatWithErrors": false,
@@ -53,30 +50,32 @@
5350
}
5451
},
5552
"files": {
56-
"ignore": [
57-
".yarn/**",
58-
"tests/analysis_tests/**/src/**",
59-
"tests/build_tests/**/src/**",
60-
"tests/docstring_tests/**",
61-
"tests/gentype_tests/**",
62-
"tests/tests/**/src/**",
63-
"tests/tools_tests/**/src/**",
64-
"analysis/examples/**/src/**",
65-
"rewatch/**",
66-
"lib/es6/**",
67-
"lib/js/**",
68-
"lib/bs/**",
69-
"playground/**",
70-
"*.bs.js",
71-
"*.res.js",
72-
"*.res.mjs",
73-
"*.gen.ts*",
74-
"*.d.ts",
75-
"*.exe",
76-
"package.json",
77-
"packages/artifacts.json",
78-
".mypy_cache/**",
79-
".history/**"
53+
"includes": [
54+
"**",
55+
"!**/.yarn",
56+
"!**/tests/analysis_tests/**/src",
57+
"!**/tests/build_tests/**/src",
58+
"!**/tests/docstring_tests",
59+
"!**/tests/gentype_tests",
60+
"**/tests/gentype_tests/typescript-react-example/**",
61+
"!**/tests/tests/**/src",
62+
"!**/tests/tools_tests/**/src",
63+
"!**/analysis/examples/**/src",
64+
"!**/rewatch",
65+
"!**/lib/es6",
66+
"!**/lib/js",
67+
"!**/lib/bs",
68+
"!**/playground",
69+
"!**/*.bs.js",
70+
"!**/*.res.js",
71+
"!**/*.res.mjs",
72+
"!**/*.gen.ts*",
73+
"!**/*.d.ts",
74+
"!**/*.exe",
75+
"!**/package.json",
76+
"!**/packages/artifacts.json",
77+
"!**/.mypy_cache",
78+
"!**/.history"
8079
]
8180
}
8281
}

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
"@rescript/win32-x64": "workspace:packages/@rescript/win32-x64"
8686
},
8787
"devDependencies": {
88-
"@biomejs/biome": "1.9.4",
88+
"@biomejs/biome": "2.3.11",
8989
"@types/node": "^25.0.3",
9090
"@types/semver": "^7.7.0",
9191
"@yarnpkg/types": "^4.0.1",

tests/build_tests/weird_deps/input.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import * as assert from "node:assert";
44
import { setup } from "#dev/process";
5+
56
const { execBuild, execClean } = setup(import.meta.dirname);
67

78
const out = await execBuild();

tests/gentype_tests/typescript-react-example/Makefile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ SHELL = /bin/bash
22

33
test:
44
yarn build
5-
yarn check
65
yarn typecheck
76
@git diff --quiet src/ \
87
|| { echo; echo "Please review the Gentype outputs too!"; echo; false; } \

tests/gentype_tests/typescript-react-example/biome.json

Lines changed: 0 additions & 13 deletions
This file was deleted.

tests/gentype_tests/typescript-react-example/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,7 @@
55
"start": "rescript build -w",
66
"build": "rescript build",
77
"clean": "rescript clean",
8-
"typecheck": "tsc",
9-
"check": "biome check --changed --no-errors-on-unmatched ."
8+
"typecheck": "tsc"
109
},
1110
"dependencies": {
1211
"@rescript/react": "^0.13.1",
@@ -15,7 +14,6 @@
1514
"rescript": "workspace:^"
1615
},
1716
"devDependencies": {
18-
"@biomejs/biome": "1.9.4",
1917
"@types/react": "^18.3.3",
2018
"@types/react-dom": "^18.3.0",
2119
"typescript": "5.9.3"

yarn.lock

Lines changed: 38 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -180,18 +180,18 @@ __metadata:
180180
languageName: node
181181
linkType: hard
182182

183-
"@biomejs/biome@npm:1.9.4":
184-
version: 1.9.4
185-
resolution: "@biomejs/biome@npm:1.9.4"
186-
dependencies:
187-
"@biomejs/cli-darwin-arm64": "npm:1.9.4"
188-
"@biomejs/cli-darwin-x64": "npm:1.9.4"
189-
"@biomejs/cli-linux-arm64": "npm:1.9.4"
190-
"@biomejs/cli-linux-arm64-musl": "npm:1.9.4"
191-
"@biomejs/cli-linux-x64": "npm:1.9.4"
192-
"@biomejs/cli-linux-x64-musl": "npm:1.9.4"
193-
"@biomejs/cli-win32-arm64": "npm:1.9.4"
194-
"@biomejs/cli-win32-x64": "npm:1.9.4"
183+
"@biomejs/biome@npm:2.3.11":
184+
version: 2.3.11
185+
resolution: "@biomejs/biome@npm:2.3.11"
186+
dependencies:
187+
"@biomejs/cli-darwin-arm64": "npm:2.3.11"
188+
"@biomejs/cli-darwin-x64": "npm:2.3.11"
189+
"@biomejs/cli-linux-arm64": "npm:2.3.11"
190+
"@biomejs/cli-linux-arm64-musl": "npm:2.3.11"
191+
"@biomejs/cli-linux-x64": "npm:2.3.11"
192+
"@biomejs/cli-linux-x64-musl": "npm:2.3.11"
193+
"@biomejs/cli-win32-arm64": "npm:2.3.11"
194+
"@biomejs/cli-win32-x64": "npm:2.3.11"
195195
dependenciesMeta:
196196
"@biomejs/cli-darwin-arm64":
197197
optional: true
@@ -211,62 +211,62 @@ __metadata:
211211
optional: true
212212
bin:
213213
biome: bin/biome
214-
checksum: 10c0/b5655c5aed9a6fffe24f7d04f15ba4444389d0e891c9ed9106fab7388ac9b4be63185852cc2a937b22940dac3e550b71032a4afd306925cfea436c33e5646b3e
214+
checksum: 10c0/b9764070c3d1583466a8861d37dc480c18103f7bb52115db0f265a38e6343d69792c9beea094e0b3db0905cb365b9a82ad2a0f3f05b7f04873a8f9b444263140
215215
languageName: node
216216
linkType: hard
217217

218-
"@biomejs/cli-darwin-arm64@npm:1.9.4":
219-
version: 1.9.4
220-
resolution: "@biomejs/cli-darwin-arm64@npm:1.9.4"
218+
"@biomejs/cli-darwin-arm64@npm:2.3.11":
219+
version: 2.3.11
220+
resolution: "@biomejs/cli-darwin-arm64@npm:2.3.11"
221221
conditions: os=darwin & cpu=arm64
222222
languageName: node
223223
linkType: hard
224224

225-
"@biomejs/cli-darwin-x64@npm:1.9.4":
226-
version: 1.9.4
227-
resolution: "@biomejs/cli-darwin-x64@npm:1.9.4"
225+
"@biomejs/cli-darwin-x64@npm:2.3.11":
226+
version: 2.3.11
227+
resolution: "@biomejs/cli-darwin-x64@npm:2.3.11"
228228
conditions: os=darwin & cpu=x64
229229
languageName: node
230230
linkType: hard
231231

232-
"@biomejs/cli-linux-arm64-musl@npm:1.9.4":
233-
version: 1.9.4
234-
resolution: "@biomejs/cli-linux-arm64-musl@npm:1.9.4"
232+
"@biomejs/cli-linux-arm64-musl@npm:2.3.11":
233+
version: 2.3.11
234+
resolution: "@biomejs/cli-linux-arm64-musl@npm:2.3.11"
235235
conditions: os=linux & cpu=arm64 & libc=musl
236236
languageName: node
237237
linkType: hard
238238

239-
"@biomejs/cli-linux-arm64@npm:1.9.4":
240-
version: 1.9.4
241-
resolution: "@biomejs/cli-linux-arm64@npm:1.9.4"
239+
"@biomejs/cli-linux-arm64@npm:2.3.11":
240+
version: 2.3.11
241+
resolution: "@biomejs/cli-linux-arm64@npm:2.3.11"
242242
conditions: os=linux & cpu=arm64 & libc=glibc
243243
languageName: node
244244
linkType: hard
245245

246-
"@biomejs/cli-linux-x64-musl@npm:1.9.4":
247-
version: 1.9.4
248-
resolution: "@biomejs/cli-linux-x64-musl@npm:1.9.4"
246+
"@biomejs/cli-linux-x64-musl@npm:2.3.11":
247+
version: 2.3.11
248+
resolution: "@biomejs/cli-linux-x64-musl@npm:2.3.11"
249249
conditions: os=linux & cpu=x64 & libc=musl
250250
languageName: node
251251
linkType: hard
252252

253-
"@biomejs/cli-linux-x64@npm:1.9.4":
254-
version: 1.9.4
255-
resolution: "@biomejs/cli-linux-x64@npm:1.9.4"
253+
"@biomejs/cli-linux-x64@npm:2.3.11":
254+
version: 2.3.11
255+
resolution: "@biomejs/cli-linux-x64@npm:2.3.11"
256256
conditions: os=linux & cpu=x64 & libc=glibc
257257
languageName: node
258258
linkType: hard
259259

260-
"@biomejs/cli-win32-arm64@npm:1.9.4":
261-
version: 1.9.4
262-
resolution: "@biomejs/cli-win32-arm64@npm:1.9.4"
260+
"@biomejs/cli-win32-arm64@npm:2.3.11":
261+
version: 2.3.11
262+
resolution: "@biomejs/cli-win32-arm64@npm:2.3.11"
263263
conditions: os=win32 & cpu=arm64
264264
languageName: node
265265
linkType: hard
266266

267-
"@biomejs/cli-win32-x64@npm:1.9.4":
268-
version: 1.9.4
269-
resolution: "@biomejs/cli-win32-x64@npm:1.9.4"
267+
"@biomejs/cli-win32-x64@npm:2.3.11":
268+
version: 2.3.11
269+
resolution: "@biomejs/cli-win32-x64@npm:2.3.11"
270270
conditions: os=win32 & cpu=x64
271271
languageName: node
272272
linkType: hard
@@ -745,7 +745,6 @@ __metadata:
745745
version: 0.0.0-use.local
746746
resolution: "@tests/gentype-react-example@workspace:tests/gentype_tests/typescript-react-example"
747747
dependencies:
748-
"@biomejs/biome": "npm:1.9.4"
749748
"@rescript/react": "npm:^0.13.1"
750749
"@types/react": "npm:^18.3.3"
751750
"@types/react-dom": "npm:^18.3.0"
@@ -2459,7 +2458,7 @@ __metadata:
24592458
version: 0.0.0-use.local
24602459
resolution: "rescript@workspace:."
24612460
dependencies:
2462-
"@biomejs/biome": "npm:1.9.4"
2461+
"@biomejs/biome": "npm:2.3.11"
24632462
"@rescript/darwin-arm64": "workspace:packages/@rescript/darwin-arm64"
24642463
"@rescript/darwin-x64": "workspace:packages/@rescript/darwin-x64"
24652464
"@rescript/linux-arm64": "workspace:packages/@rescript/linux-arm64"

0 commit comments

Comments
 (0)