Skip to content

chore: add Biome v2 formatter/linter and CI workflow#54

Merged
j4rviscmd merged 3 commits intomainfrom
chore/formatter-setup
Mar 26, 2026
Merged

chore: add Biome v2 formatter/linter and CI workflow#54
j4rviscmd merged 3 commits intomainfrom
chore/formatter-setup

Conversation

@j4rviscmd
Copy link
Copy Markdown
Owner

Summary

Add comprehensive code formatting and linting infrastructure for both frontend and backend.

Changes

Frontend (Biome v2)

  • Install and configure Biome v2.4.9 as the unified linter/formatter
  • Configuration: single quotes, no semicolons, ES5 trailing commas, 2-space indent
  • Import organizing and Tailwind CSS class sorting (nursery rule)
  • Custom overrides for shadcn/ui components (a11y rules relaxed) and features UI (a11y as warnings)
  • Add npm scripts: lint, format, check, check:unsafe
  • Apply formatting to all existing source files (~100 files)

Backend (Rust)

  • Add rustfmt.toml configuration (edition 2021, max_width 100)
  • Apply cargo fmt to existing code
  • Fix clippy warning: remove needless borrow in lib.rs

CI (GitHub Actions)

  • Add ci.yml workflow triggered on PRs to main
  • Frontend job: npx biome ci . (lint + format check)
  • Backend job: cargo fmt --check + cargo clippy -- -D warnings
  • Rust dependency caching via Swatinem/rust-cache
  • Concurrency control to cancel duplicate runs

IDE

  • Add .vscode/settings.json for format-on-save with Biome
  • Add Biome extension recommendation to .vscode/extensions.json
  • Update .gitignore to track .vscode/settings.json

Notes

  • Biome warnings (12) are intentionally kept as warnings, not errors — they don't block CI
  • noExplicitAny is disabled due to extensive BlockNote API usage requiring any types

j4rviscmd and others added 2 commits March 26, 2026 16:46
- Install and configure Biome v2.4.9 for frontend lint/format
  - Single quotes, no semicolons, es5 trailing commas
  - Import organizing and Tailwind class sorting
  - Custom overrides for shadcn/ui and features UI
- Add npm scripts: lint, format, check, check:unsafe
- Add VSCode settings for format-on-save with Biome
- Add rustfmt.toml for Rust formatting
- Apply cargo clippy fix (remove needless borrow in lib.rs)
- Add GitHub Actions CI workflow for PR checks
  - Frontend: biome ci (lint + format)
  - Backend: cargo fmt --check + cargo clippy
- Apply formatting to all existing source files

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@j4rviscmd j4rviscmd added the enhancement New feature or request label Mar 26, 2026
Install libgtk-3-dev, libwebkit2gtk-4.1-dev, and other required system
libraries for compiling the Tauri Rust backend on Ubuntu CI runners.

Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
@j4rviscmd j4rviscmd merged commit 89315c5 into main Mar 26, 2026
2 checks passed
@j4rviscmd j4rviscmd deleted the chore/formatter-setup branch March 26, 2026 07:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant