mirror of
https://github.com/chriswritescode-dev/opencode-manager.git
synced 2026-12-05 12:24:30 +01:00
docs: allow declaration-attached doc comments in the code style rules
This commit is contained in:
1 parent
2e31cb45ba
commit
4d227e32da
4 files changed
+4
-4
No files matched your search
@@ -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)
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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'`
|
||||
|
||||
+1
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user