Skip to content

Commit ddcee71

Browse files
committed
BUG: Fix frontend linting
1 parent 8af907c commit ddcee71

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,10 +28,9 @@ repos:
2828
hooks:
2929
- id: local-biome-check
3030
name: biome check
31-
entry: npx biome check --write --files-ignore-unknown=true --no-errors-on-unmatched
31+
entry: bash -c "cd frontend; npm run lint"
3232
language: system
3333
types: [text]
34-
files: "\\.(jsx?|tsx?|c(js|ts)|m(js|ts)|d\\.(ts|cts|mts)|jsonc?|css|svelte|vue|astro|graphql|gql)$"
3534

3635
ci:
3736
autofix_commit_msg: 🎨 [pre-commit.ci] Auto format from pre-commit.com hooks

frontend/biome.json

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
},
66
"files": {
77
"ignore": [
8+
"dist",
89
"node_modules",
10+
"src/client",
911
"src/routeTree.gen.ts",
1012
"playwright.config.ts",
1113
"playwright-report"

frontend/package.json

Lines changed: 1 addition & 1 deletion
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
},

scripts/generate-client.sh

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,4 +9,3 @@ cd ..
99
mv openapi.json frontend/
1010
cd frontend
1111
npm run generate-client
12-
npx biome format --write ./src/client

0 commit comments

Comments
 (0)