docs: codify formatter tooling · openclaw/openclaw@c082cf8
steipete
·
2026-04-27
·
via Recent Commits to openclaw:main
| Original file line number | Diff line number | Diff line change |
|---|
@@ -50,7 +50,8 @@ Telegraph style. Root rules only. Read scoped `AGENTS.md` before subtree work.
|
50 | 50 | - Extension tests: `pnpm test:extensions`, `pnpm test extensions`, `pnpm test extensions/<id>`. |
51 | 51 | - Targeted tests: `pnpm test <path-or-filter> [vitest args...]`; never raw `vitest`. |
52 | 52 | - Typecheck: `tsgo` lanes only (`pnpm tsgo*`, `pnpm check:test-types`); do not add `tsc --noEmit`, `typecheck`, `check:types`. |
53 | | -- Format/lint: `pnpm format:check`/`pnpm format`; `pnpm lint*` lanes. |
| 53 | +- Formatting: use `oxfmt`, not Prettier. Prefer `pnpm format:check` / `pnpm format`; for targeted files use `pnpm exec oxfmt --check --threads=1 <files...>` or `pnpm exec oxfmt --write --threads=1 <files...>`. |
| 54 | +- Linting: use repo wrappers (`pnpm lint:*`, `scripts/run-oxlint.mjs`); do not invoke generic JS formatters/lints unless a repo script uses them. |
54 | 55 | - Heavy checks: `OPENCLAW_LOCAL_CHECK=1`, mode `OPENCLAW_LOCAL_CHECK_MODE=throttled|full`; CI/shared use `OPENCLAW_LOCAL_CHECK=0`. |
55 | 56 | - Local first. Use repo `pnpm` lanes before Blacksmith/Testbox. Remote only for parity-only failures, secrets/services, or explicit ask. |
56 | 57 | |
|
此内容由惯性聚合(RSS阅读器)自动聚合整理,仅供阅读参考。 原文来自 — 版权归原作者所有。