mirror of
https://github.com/runablehq/mini-browser.git
synced 2026-09-20 13:45:46 +08:00
426 B
426 B
Code Style Guidelines
- Prefer functional style with pure functions and avoid mutations.
- Let TypeScript infer return types instead of explicit annotations.
- Use object destructuring for parameters instead of positional arguments.
- Define interfaces above functions, not inline in signatures.
- Always validate absolute paths in tools.
- Use node:path for path operations.
- Throw descriptive errors for invalid inputs.