Skip to content

Commit 386eaff

Browse files
committed
Biome v2
1 parent 00114e8 commit 386eaff

22 files changed

+415
-420
lines changed

biome.json

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,11 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
2+
"$schema": "https://biomejs.dev/schemas/2.1.4/schema.json",
33
"vcs": {
44
"enabled": true,
55
"clientKind": "git",
66
"useIgnoreFile": true
77
},
8-
"javascript": {
9-
"formatter": {
10-
"quoteStyle": "single"
11-
}
12-
},
138
"files": {
14-
"include": ["src/**/*.ts", "src/**/*.tsx"]
9+
"includes": ["src/**/*.ts", "src/**/*.tsx"]
1510
}
1611
}

package.json

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -304,9 +304,9 @@
304304
},
305305
"scripts": {
306306
"vscode:prepublish": "npm run prod",
307-
"lint": "biome lint",
308-
"format": "biome format",
309-
"check": "biome check",
307+
"lint": "npx @biomejs/biome lint",
308+
"format": "npx @biomejs/biome format",
309+
"check": "npx @biomejs/biome check",
310310
"type-build": "tsc --build",
311311
"type-check": "tsc --noEmit",
312312
"build-js": "node ./esbuild.mjs",
@@ -322,9 +322,9 @@
322322
"author": "Sam Huang",
323323
"license": "MIT",
324324
"devDependencies": {
325-
"@biomejs/biome": "1.9.4",
325+
"@biomejs/biome": "^2.1.4",
326326
"@tailwindcss/cli": "^4.1.11",
327-
"@types/node": "^22.17.0",
327+
"@types/node": "^22.17.1",
328328
"@types/vscode": "^1.102.0",
329329
"@types/vscode-webview": "^1.57.5",
330330
"cross-env": "^7.0.3",
@@ -338,4 +338,4 @@
338338
"nu-observables": "^0.0.7",
339339
"preact": "^10.27.0"
340340
}
341-
}
341+
}

pnpm-lock.yaml

Lines changed: 52 additions & 52 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/common/provider.ts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,25 +17,25 @@ export interface IProblem {
1717
memoryLimit: number;
1818
timeLimit: number;
1919
tests: ITest[];
20-
testType: 'single' | 'multiNumber';
20+
testType: "single" | "multiNumber";
2121
input:
2222
| {
23-
type: 'stdin';
23+
type: "stdin";
2424
}
2525
| {
26-
type: 'file';
26+
type: "file";
2727
fileName: string;
2828
}
2929
| {
30-
type: 'regex';
30+
type: "regex";
3131
pattern: string;
3232
};
3333
output:
3434
| {
35-
type: 'stdout';
35+
type: "stdout";
3636
}
3737
| {
38-
type: 'file';
38+
type: "file";
3939
fileName: string;
4040
};
4141
languages:

src/common/webview.tsx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
import type { FunctionComponent } from 'preact';
1+
import type { FunctionComponent } from "preact";
22

3-
export const GRAY_COLOR = '#52525C';
4-
export const GREEN_COLOR = '#475B45';
5-
export const RED_COLOR = '#6C4549';
6-
export const BLUE_COLOR = '#4C6179';
3+
export const GRAY_COLOR = "#52525C";
4+
export const GREEN_COLOR = "#475B45";
5+
export const RED_COLOR = "#6C4549";
6+
export const BLUE_COLOR = "#4C6179";
77

88
interface ArrowSvgPropsGeneric extends ArrowSvgProps {
99
d: string;
@@ -24,7 +24,7 @@ const ArrowSvg: FunctionComponent<ArrowSvgPropsGeneric> = ({
2424
fill="currentColor"
2525
class="w-4 h-4 mr-2 mt-1 shrink-0"
2626
onClick={onClick}
27-
onKeyDown={(event) => event.key === 'Enter' && onClick?.()}
27+
onKeyDown={(event) => event.key === "Enter" && onClick?.()}
2828
>
2929
<title>Arrow</title>
3030
<path fill={color} fillRule="evenodd" d={d} clipRule="evenodd" />

0 commit comments

Comments
 (0)