Skip to content

Commit d6339c8

Browse files
committed
test: simple test cases
1 parent c2db21a commit d6339c8

File tree

6 files changed

+523
-89
lines changed

6 files changed

+523
-89
lines changed

AGENTS.md

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# AGENTS.md
2+
3+
## Build, Lint, and Test Commands
4+
5+
- **Build:**
6+
`bun run build` (uses tsup)
7+
- **Dev:**
8+
`bun run dev`
9+
- **Lint:**
10+
`bun run lint` (uses @echristian/eslint-config)
11+
- **Lint & Fix staged files:**
12+
`bunx lint-staged`
13+
- **Test all:**
14+
`bun test`
15+
- **Test single file:**
16+
`bun test tests/claude-request.test.ts`- **Start (prod):**
17+
`bun run start`
18+
19+
## Code Style Guidelines
20+
21+
- **Imports:**
22+
Use ESNext syntax. Prefer absolute imports via `~/*` for `src/*` (see `tsconfig.json`).
23+
- **Formatting:**
24+
Follows Prettier (with `prettier-plugin-packagejson`). Run `bun run lint` to auto-fix.
25+
- **Types:**
26+
Strict TypeScript (`strict: true`). Avoid `any`; use explicit types and interfaces.
27+
- **Naming:**
28+
Use `camelCase` for variables/functions, `PascalCase` for types/classes.
29+
- **Error Handling:**
30+
Use explicit error classes (see `src/lib/error.ts`). Avoid silent failures.
31+
- **Unused:**
32+
Unused imports/variables are errors (`noUnusedLocals`, `noUnusedParameters`).
33+
- **Switches:**
34+
No fallthrough in switch statements.
35+
- **Modules:**
36+
Use ESNext modules, no CommonJS.
37+
- **Testing:**
38+
Use Bun’s built-in test runner. Place tests in `tests/`, name as `*.test.ts`.- **Linting:**
39+
Uses `@echristian/eslint-config` (see npm for details). Includes stylistic, unused imports, regex, and package.json rules.
40+
- **Paths:**
41+
Use path aliases (`~/*`) for imports from `src/`.
42+
43+
---
44+
45+
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.

0 commit comments

Comments
 (0)