Skip to content

Code Style

jamster edited this page Nov 22, 2026 · 1 revision

Code Style

Run the checks before pushing. CI runs the same commands on every pull request, so this saves you a failed build.

Client

Run this from client:

npm run checks

On Windows this runs run-checks.bat. On Linux and MacOS, run run-checks.sh yourself, instead.

The script runs these commands in order and stops at the first failure:

  • cargo fmt --all
  • cargo clippy -- -W warnings
  • cargo check
  • npm run check
  • npm run test:storybook

Fix any errors or warnings before pushing.


For a visual view of components, run npm run storybook. It opens the storybook UI in your browser.

Server

Run these from server:

cargo fmt --all
cargo clippy -- -W warnings

Clone this wiki locally