Skip to content

Code Standards

Topics:

  • Naming conventions — files / classes / functions / paths / role / button / route names
  • Vue style — SFC script order, template rules
  • Backend style — enforced checklist (response, schema, API, CRUD, permissions, models)

Toolchain

ConcernToolCommand
Backend lint / formatRuff (line 200, double-quote, rules E/F/I)just fmt backend / just lint backend
Backend typesbasedpyright (standard mode)just typecheck backend
Backend testspytestjust test backend
Frontend lintESLint (@soybeanjs/eslint-config-vue) + oxlintjust lint frontend
Frontend typesvue-tscjust typecheck frontend
Full stackjust check
Pre-commit hooksimple-git-hooksauto-installed via cd web && pnpm install

Pre-commit gate

bash
just check

Or run only the side you touched: just check backend / just check frontend.

基于 MIT 协议发布