refactor: replace named re-exports with star re-exports in barrel files
Convert export { A, B, ... } from and export type { ... } from blocks
to export * from across all packages (ai, coding-agent, natives, tui, utils).
This commit is contained in:
@@ -22,6 +22,7 @@ This repo contains multiple packages, but **`packages/coding-agent/`** is the pr
|
||||
## Code Quality
|
||||
|
||||
- No `any` types unless absolutely necessary
|
||||
- Prefer `export * from "./module"` over named re-export-from blocks, including `export type { ... } from`. In pure `index.ts` barrel files (re-exports only), use star re-exports even for single-specifier cases. If star re-exports create symbol ambiguity, remove the redundant export path instead of keeping duplicate exports.
|
||||
- **No `private`/`protected`/`public` keyword on class fields or methods** — use ES native `#` private fields for encapsulation; leave members that need external access as bare (no keyword). The only place `private`/`protected`/`public` is allowed is on **constructor parameter properties** (e.g., `constructor(private readonly session: ToolSession)`), where TypeScript requires the keyword for the implicit field declaration.
|
||||
|
||||
```typescript
|
||||
|
||||
Reference in New Issue
Block a user