Skip to content
Merged
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
14 changes: 10 additions & 4 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ name: CI

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

jobs:
lint:
Expand All @@ -28,7 +28,13 @@ jobs:
uses: actions/setup-node@v6
with:
node-version: 24
cache: 'pnpm'
cache: "pnpm"

- name: Prepare embed directory
run: mkdir -p frontend/dist && touch frontend/dist/.keep

- name: generate openapi schema
run: go run ./cmd/schema/main.go

- name: Run go generate
run: go generate ./...
Expand Down Expand Up @@ -85,7 +91,7 @@ jobs:
uses: actions/setup-node@v6
with:
node-version: 24
cache: 'pnpm'
cache: "pnpm"

- name: Run go generate
run: go generate ./...
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,4 @@ TESTING_PLAN.md

# this thiing changes too often
frontend/openapi.json
frontend/src/client
7 changes: 7 additions & 0 deletions frontend/eslint.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import globals from "globals";
import reactHooks from "eslint-plugin-react-hooks";
import reactRefresh from "eslint-plugin-react-refresh";
import tseslint from "typescript-eslint";
import unusedImports from "eslint-plugin-unused-imports"; // 👈 add this
import { defineConfig, globalIgnores } from "eslint/config";

export default defineConfig([
Expand All @@ -15,6 +16,12 @@ export default defineConfig([
reactHooks.configs.flat.recommended,
reactRefresh.configs.vite,
],
plugins: {
"unused-imports": unusedImports,
},
rules: {
"unused-imports/no-unused-imports": "error",
},
languageOptions: {
ecmaVersion: 2020,
globals: globals.browser,
Expand Down
6 changes: 4 additions & 2 deletions frontend/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
"type": "module",
"scripts": {
"dev": "vite",
"build": "tsc -b && vite build",
"build": "vite build && tsc -b",
"lint": "eslint .",
"preview": "vite preview",
"generate:client": "openapi-ts --input http://localhost:8000/openapi.json --output src/client",
"generate:client": "openapi-ts --input ./openapi.json --output src/client",
"format": "prettier --write .",
"format:check": "prettier --check ."
},
Expand Down Expand Up @@ -43,6 +43,7 @@
"sonner": "^2.0.7",
"tailwind-merge": "^3.4.0",
"tailwindcss": "^4.1.17",
"vaul": "^1.1.2",
"zod": "^4.2.0",
"zustand": "^5.0.9"
},
Expand All @@ -57,6 +58,7 @@
"eslint": "^9.39.1",
"eslint-plugin-react-hooks": "^7.0.1",
"eslint-plugin-react-refresh": "^0.4.24",
"eslint-plugin-unused-imports": "^4.4.1",
"globals": "^16.5.0",
"husky": "^9.1.7",
"lint-staged": "^16.4.0",
Expand Down
36 changes: 36 additions & 0 deletions frontend/pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading
Loading