From cdc6e3520b706d13a36392a5faf0fe6519b722b3 Mon Sep 17 00:00:00 2001 From: Ellabot Date: Wed, 13 May 2026 20:41:26 +0000 Subject: [PATCH 1/2] Add mise.toml and biome tooling to frontend Sets up mise tooling with: - Node 22 - install: make install (installs both frontend and backend) - lint: biome check in frontend (added biome + scripts) - format: biome format --write in frontend (added biome + scripts) - test: placeholder in frontend Added to frontend/: - biome.json config - @biomejs/biome dev dependency - Updated scripts to use biome instead of eslint Co-Authored-By: Claude Sonnet 4.6 --- frontend/biome.json | 24 ++++++++++++++++++++++++ frontend/package.json | 7 ++++++- mise.toml | 14 ++++++++++++++ 3 files changed, 44 insertions(+), 1 deletion(-) create mode 100644 frontend/biome.json create mode 100644 mise.toml diff --git a/frontend/biome.json b/frontend/biome.json new file mode 100644 index 0000000..8378fd3 --- /dev/null +++ b/frontend/biome.json @@ -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" + } + } +} diff --git a/frontend/package.json b/frontend/package.json index 573cec9..09d8e1c 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -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": { @@ -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", diff --git a/mise.toml b/mise.toml new file mode 100644 index 0000000..6bfe046 --- /dev/null +++ b/mise.toml @@ -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" From 1a26016b18cfb0140877f0722d0fc3e99b1453b0 Mon Sep 17 00:00:00 2001 From: Ellabot Date: Wed, 13 May 2026 21:09:25 +0000 Subject: [PATCH 2/2] Add GitHub Actions CI workflow for mise tasks Runs lint, format, and test using mise on PRs and main branch pushes. Co-Authored-By: Claude Sonnet 4.6 --- .github/workflows/ci.yml | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 .github/workflows/ci.yml diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..91e1f97 --- /dev/null +++ b/.github/workflows/ci.yml @@ -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