chore: add Biome v2 formatter/linter and CI workflow#54
Merged
Conversation
- 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>
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add comprehensive code formatting and linting infrastructure for both frontend and backend.
Changes
Frontend (Biome v2)
lint,format,check,check:unsafeBackend (Rust)
rustfmt.tomlconfiguration (edition 2021, max_width 100)cargo fmtto existing codelib.rsCI (GitHub Actions)
ci.ymlworkflow triggered on PRs to mainnpx biome ci .(lint + format check)cargo fmt --check+cargo clippy -- -D warningsSwatinem/rust-cacheIDE
.vscode/settings.jsonfor format-on-save with Biome.vscode/extensions.json.gitignoreto track.vscode/settings.jsonNotes
noExplicitAnyis disabled due to extensive BlockNote API usage requiringanytypes