Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: CI

on:
pull_request:
branches: [main]
push:
branches: [main]

jobs:
lint-format-test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4

- uses: jdx/mise-action@v2

- name: Lint
run: mise run lint

- name: Format check
run: mise run format

- name: Test
run: mise run test
24 changes: 24 additions & 0 deletions frontend/biome.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"$schema": "https://biomejs.dev/schemas/1.9.4/schema.json",
"organizeImports": {
"enabled": true
},
"linter": {
"enabled": true,
"rules": {
"recommended": true
}
},
"formatter": {
"enabled": true,
"indentStyle": "space",
"indentWidth": 2,
"lineWidth": 100
},
"javascript": {
"formatter": {
"quoteStyle": "single",
"trailingCommas": "es5"
}
}
}
7 changes: 6 additions & 1 deletion frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,11 @@
"scripts": {
"dev": "vite",
"build": "vite build",
"lint": "eslint .",
"lint": "biome check src",
"lint:fix": "biome check --write src",
"format": "biome format src",
"format:write": "biome format --write src",
"test": "echo 'No tests configured'",
"preview": "vite preview"
},
"dependencies": {
Expand All @@ -15,6 +19,7 @@
"react-router-dom": "7.1.5"
},
"devDependencies": {
"@biomejs/biome": "^1.9.4",
"@types/react": "^19.0.8",
"@types/react-dom": "^19.0.3",
"@vitejs/plugin-react": "^4.3.4",
Expand Down
14 changes: 14 additions & 0 deletions mise.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
[tools]
node = "22"

[tasks.install]
run = "make install"

[tasks.lint]
run = "cd frontend && yarn install --immutable && yarn lint"

[tasks.format]
run = "cd frontend && yarn install --immutable && yarn format:write"

[tasks.test]
run = "cd frontend && yarn test"
Loading