Spaces:
Running
Running
AGENTS.md
Build, Lint, and Test Commands
- Build:
bun run build(uses tsup) - Dev:
bun run dev - Lint:
bun run lint(uses @echristian/eslint-config) - Lint & Fix staged files:
bunx lint-staged - Test all:
bun test - Test single file:
bun test tests/claude-request.test.ts - Start (prod):
bun run start
Code Style Guidelines
- Imports:
Use ESNext syntax. Prefer absolute imports via~/*forsrc/*(seetsconfig.json). - Formatting:
Follows Prettier (withprettier-plugin-packagejson). Runbun run lintto auto-fix. - Types:
Strict TypeScript (strict: true). Avoidany; use explicit types and interfaces. - Naming:
UsecamelCasefor variables/functions,PascalCasefor types/classes. - Error Handling:
Use explicit error classes (seesrc/lib/error.ts). Avoid silent failures. - Unused:
Unused imports/variables are errors (noUnusedLocals,noUnusedParameters). - Switches:
No fallthrough in switch statements. - Modules:
Use ESNext modules, no CommonJS. - Testing:
Use Bun's built-in test runner. Place tests intests/, name as*.test.ts. - Linting:
Uses@echristian/eslint-config(see npm for details). Includes stylistic, unused imports, regex, and package.json rules. - Paths:
Use path aliases (~/*) for imports fromsrc/.
This file is tailored for agentic coding agents. For more details, see the configs in eslint.config.js and tsconfig.json. No Cursor or Copilot rules detected.