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)make fmt / make lint
Backend typesbasedpyright (standard mode)make typecheck
Backend testspytestmake test
Frontend lintESLint (@soybeanjs/eslint-config-vue) + oxlintmake web-lint
Frontend typesvue-tscmake web-typecheck
Full stackmake check-all
Pre-commit hooksimple-git-hooksauto-installed via cd web && pnpm install

Pre-commit gate

bash
make check-all

Or run only the side you touched: make check / make web-check.

基于 MIT 协议发布