diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 035e71a6..95fc1828 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -13,7 +13,7 @@ ### Must Flag as Issues -- Any code comments (code must be self-documenting) +- Inline, explanatory, or section comments (code must be self-documenting); JSDoc/TSDoc attached to the declaration it documents is allowed - Console.log statements (use structured logging) - Use of `any` type without justification - Default exports (named exports only) diff --git a/.github/pull_request_template.md b/.github/pull_request_template.md index c069b2f8..9466da6a 100644 --- a/.github/pull_request_template.md +++ b/.github/pull_request_template.md @@ -9,7 +9,7 @@ ## Checklist -- [ ] Code follows project style (no comments, named imports) +- [ ] Code follows project style (doc comments only, named imports) - [ ] TypeScript types are properly defined - [ ] Tests added/updated (80% coverage target) - [ ] `pnpm lint` passes locally diff --git a/AGENTS.md b/AGENTS.md index aae1d66f..ada7271d 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -17,7 +17,7 @@ ## Code Style -- No comments, self-documenting code only +- Doc comments only in new and changed code: JSDoc/TSDoc attached to the declaration they document, in the language's native doc convention. No inline, explanatory, or section comments; code must be self-documenting - No console logs (use Bun's logger or proper error handling) - Strict TypeScript everywhere, proper typing required - Named imports only: `import { Hono } from 'hono'`, `import { useState } from 'react'` diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index 492335c7..018b2e90 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -49,7 +49,7 @@ Each item is tagged with a theme to help you find work in your area of interest: ### Code Style -- Self-documenting code (no comments needed) +- New and changed code uses doc comments only (JSDoc/TSDoc on the declaration they document); no inline or explanatory comments - Strict TypeScript with proper typing - Named imports only - DRY principles - check for existing patterns before adding new ones