Skip to content

Commit d715351

Browse files
committed
Update biome
1 parent e5e6ca5 commit d715351

File tree

3 files changed

+88
-85
lines changed

3 files changed

+88
-85
lines changed

frontend/biome.json

Lines changed: 15 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
{
2-
"$schema": "https://biomejs.dev/schemas/1.6.1/schema.json",
3-
"organizeImports": {
4-
"enabled": true
5-
},
2+
"$schema": "https://biomejs.dev/schemas/2.2.3/schema.json",
3+
"assist": { "actions": { "source": { "organizeImports": "on" } } },
64
"files": {
7-
"ignore": [
8-
"node_modules",
9-
"src/routeTree.gen.ts",
10-
"playwright.config.ts",
11-
"playwright-report"
5+
"includes": [
6+
"**",
7+
"!**/dist/**/*",
8+
"!**/node_modules",
9+
"!**/src/routeTree.gen.ts",
10+
"!**/playwright.config.ts",
11+
"!**/playwright-report"
1212
]
1313
},
1414
"linter": {
@@ -20,9 +20,13 @@
2020
"noArrayIndexKey": "off"
2121
},
2222
"style": {
23-
"noNonNullAssertion": "off"
23+
"noNonNullAssertion": "off",
24+
"noParameterAssign": "error",
25+
"useSelfClosingElements": "error",
26+
"noUselessElse": "error"
2427
}
25-
}
28+
},
29+
"includes": ["**", "!**/src/client/**", "!**/src/components/ui/**"]
2630
},
2731
"formatter": {
2832
"indentStyle": "space"

frontend/package-lock.json

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

frontend/package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
"scripts": {
77
"dev": "vite",
88
"build": "tsc -p tsconfig.build.json && vite build",
9-
"lint": "biome check --apply-unsafe --no-errors-on-unmatched --files-ignore-unknown=true ./",
9+
"lint": "biome check --write --no-errors-on-unmatched --files-ignore-unknown=true ./",
1010
"preview": "vite preview",
1111
"generate-client": "openapi-ts"
1212
},
@@ -26,7 +26,7 @@
2626
"react-icons": "^5.5.0"
2727
},
2828
"devDependencies": {
29-
"@biomejs/biome": "1.9.4",
29+
"@biomejs/biome": "^2.2.3",
3030
"@hey-api/openapi-ts": "0.73.0",
3131
"@playwright/test": "^1.55.0",
3232
"@tanstack/router-devtools": "^1.131.36",

0 commit comments

Comments
 (0)