Skip to content

Commit 056ff6c

Browse files
committed
feat(format): add biome and update frontend
1 parent 666e951 commit 056ff6c

File tree

18 files changed

+1461
-1419
lines changed

18 files changed

+1461
-1419
lines changed

frontend/biome.json

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
1+
{
2+
"$schema": "https://biomejs.dev/schemas/2.1.4/schema.json",
3+
"assist": {
4+
"actions": {
5+
"source": {
6+
"organizeImports": {
7+
"level": "on",
8+
"options": {
9+
"groups": [":PACKAGE:", ":BLANK_LINE:", ":NODE:", ":BLANK_LINE:", ":PATH:"]
10+
}
11+
}
12+
}
13+
}
14+
},
15+
"linter": {
16+
"enabled": true,
17+
"rules": {
18+
"recommended": true,
19+
"correctness": {
20+
"noUnusedVariables": "error"
21+
},
22+
"style": {
23+
"useImportType": "error",
24+
"useConsistentArrayType": "error",
25+
"noNonNullAssertion": "warn"
26+
},
27+
"suspicious": {
28+
"noExplicitAny": "warn"
29+
},
30+
"complexity": {
31+
"noForEach": "off"
32+
}
33+
}
34+
},
35+
"formatter": {
36+
"enabled": true,
37+
"formatWithErrors": false,
38+
"indentStyle": "space",
39+
"indentWidth": 2,
40+
"lineEnding": "lf",
41+
"lineWidth": 100
42+
},
43+
"javascript": {
44+
"formatter": {
45+
"jsxQuoteStyle": "double",
46+
"quoteProperties": "asNeeded",
47+
"trailingCommas": "all",
48+
"semicolons": "always",
49+
"arrowParentheses": "always",
50+
"bracketSpacing": true,
51+
"bracketSameLine": false,
52+
"quoteStyle": "double"
53+
}
54+
},
55+
"json": {
56+
"formatter": {
57+
"enabled": true
58+
}
59+
},
60+
"files": {
61+
"includes": ["src/**/*", "*.json", "*.md"],
62+
"ignoreUnknown": false
63+
}
64+
}

frontend/package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,18 +5,20 @@
55
"start": "vite",
66
"dev": "vite",
77
"build": "vite build && node compress.mjs",
8-
"serve": "vite preview"
8+
"serve": "vite preview",
9+
"format": "biome check --fix && biome format --write ."
910
},
1011
"license": "MIT",
1112
"devDependencies": {
13+
"@biomejs/biome": "2.1.4",
1214
"@gfx/zopfli": "^1.0.15",
13-
"@types/node": "^24.2.0",
15+
"@types/node": "^24.2.1",
1416
"@types/offscreencanvas": "^2019.7.3",
1517
"autoprefixer": "^10.4.21",
1618
"postcss": "^8.5.6",
1719
"tailwindcss": "^4.1.11",
1820
"typescript": "^5.9.2",
19-
"vite": "^7.0.6",
21+
"vite": "^7.1.2",
2022
"vite-plugin-singlefile": "^2.3.0",
2123
"vite-plugin-solid": "^2.11.8"
2224
},
@@ -29,7 +31,7 @@
2931
"@solid-primitives/websocket": "^1.3.1",
3032
"@tailwindcss/postcss": "^4.1.11",
3133
"@tailwindcss/vite": "^4.1.11",
32-
"solid-js": "^1.9.7",
34+
"solid-js": "^1.9.9",
3335
"tailwind-merge": "^3.3.1",
3436
"tailwindcss-animate": "^1.0.7"
3537
},

0 commit comments

Comments
 (0)