AGENTS.md §11: a sort keys on the name a line introduces, so an import sorts on its first binding

This commit is contained in:
2026-09-18 23:03:13 +02:00
parent 5b78e608f0
commit ed099a093d
17 changed files with 27 additions and 25 deletions
+3 -1
View File
@@ -266,7 +266,9 @@ someone spells it or pins it.
## 11. Code rules
- Two-space indent, strict TypeScript, English everywhere. Alphabetical order wherever order
carries no meaning.
carries no meaning, keyed on the name a line introduces rather than where it came from: an
import sorts on its first binding, type imports ahead of value imports, so moving or renaming a
module reorders nothing (the maintainer, 2026-09-18).
- Failures are values: everything returns
`Result<T>` — `{ ok: true; value } | { ok: false; error: ConvertError }` — nothing throws.
`try/catch` only wrapped tightly around a call that genuinely throws, converted to a result on