Skip to content
This repository was archived by the owner on Mar 20, 2026. It is now read-only.
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
21 changes: 16 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,23 @@ concurrency:
cancel-in-progress: true

jobs:
lint:
name: Lint
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v5

- name: Setup Bun
uses: oven-sh/setup-bun@v2

- name: Install dependencies
run: bun install

- name: Run oxlint
run: bun run lint

test:
needs: lint
runs-on: ${{ matrix.os }}
strategy:
matrix:
Expand All @@ -28,11 +44,6 @@ jobs:
- name: Install dependencies
run: bun install

# TODO linting
# - name: Lint frontend
# working-directory: ./desktop
# run: bun run lint

- name: Check Rust formatting
working-directory: ./desktop/src-tauri
run: cargo fmt --check
Expand Down
10 changes: 10 additions & 0 deletions .oxlintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"rules": {
"no-unused-vars": "warn",
"no-console": "off"
},
"env": {
"node": true,
"es2022": true
}
}
19 changes: 19 additions & 0 deletions bun.lock

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

4 changes: 3 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,8 @@
"build": "bun run --filter desktop tauri build",
"dev": "cross-env TAURI_ENV_USE_TEST_DB=true bun run --filter desktop tauri dev",
"prod": "bun run --filter desktop tauri dev",
"lazy-release": "lazy-release"
"lazy-release": "lazy-release",
"lint": "oxlint desktop/src/**/*.{ts,js,vue}"
},
"workspaces": [
"desktop"
Expand All @@ -22,6 +23,7 @@
"@types/better-sqlite3": "^7.6.13",
"concurrently": "^9.2.1",
"cross-env": "^10.1.0",
"oxlint": "^1.28.0",
"wait-on": "^8.0.4"
}
}