From 651b9b99953d84b884421a2fcb369dba0e219531 Mon Sep 17 00:00:00 2001 From: Chris Scott <99081550+chriswritescode-dev@users.noreply.github.com> Date: Fri, 23 Oct 2026 21:22:20 -0400 Subject: [PATCH] docs: allow doc comments in the code style rules Doc comments attached to their declaration are allowed; inline and explanatory comments are still prohibited. AGENTS.md, CONTRIBUTING.md and the PR checklist now state the same rule. --- .github/pull_request_template.md | 2 +- AGENTS.md | 2 +- CONTRIBUTING.md | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) 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..946dc6bf 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -17,7 +17,7 @@ ## Code Style -- No comments, self-documenting code only +- Doc comments only: 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..51126052 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) +- 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