Skip to content

Commit 7631ce3

Browse files
committed
fix: migrate biome config to v2
1 parent 072e6ea commit 7631ce3

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

biome.json

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
3-
"organizeImports": {
4-
"enabled": true
5-
},
2+
"root": false,
3+
"$schema": "https://biomejs.dev/schemas/2.2.4/schema.json",
4+
"assist": { "actions": { "source": { "organizeImports": "on" } } },
65
"formatter": {
76
"enabled": false,
87
"lineWidth": 100,
@@ -20,7 +19,6 @@
2019
}
2120
},
2221
"files": {
23-
"include": ["src/**/*"],
24-
"ignore": ["dist/**/*", "node_modules/**/*"]
22+
"includes": ["**/src/**/*", "!**/dist/**/*", "!**/node_modules/**/*"]
2523
}
2624
}

packages/pranx/biome.json

Lines changed: 9 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,7 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.8.3/schema.json",
3-
"organizeImports": {
4-
"enabled": true
5-
},
2+
"root": false,
3+
"$schema": "https://biomejs.dev/schemas/2.2.4/schema.json",
4+
"assist": { "actions": { "source": { "organizeImports": "on" } } },
65
"formatter": {
76
"enabled": false,
87
"lineWidth": 100,
@@ -20,7 +19,11 @@
2019
}
2120
},
2221
"files": {
23-
"include": ["./src/**/*"],
24-
"ignore": ["./dist/**/*", "./src/client/shared/exec-match.ts", "node_modules/**/*"]
22+
"includes": [
23+
"src/**/*",
24+
"!dist/**/*",
25+
"!src/client/shared/exec-match.ts",
26+
"!**/node_modules/**/*"
27+
]
2528
}
2629
}

packages/pranx/src/utils/time-perf.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ const timeTags = new Map<string, number>();
77
* @returns The elapsed time in milliseconds, or undefined if this is the first call with the tag.
88
*/
99
export function measureTime(tag: string): number | undefined {
10-
const now =
11-
typeof performance !== "undefined" && performance.now ? performance.now() : Date.now();
10+
const now = performance?.now ? performance.now() : Date.now();
1211

1312
const last = timeTags.get(tag);
1413
timeTags.set(tag, now);

0 commit comments

Comments
 (0)