Skip to content

document code style preference for hook spacing#29

Merged
AntonNiklasson merged 1 commit into
mainfrom
an/code-style-section
May 5, 2026
Merged

document code style preference for hook spacing#29
AntonNiklasson merged 1 commit into
mainfrom
an/code-style-section

Conversation

@AntonNiklasson
Copy link
Copy Markdown
Owner

Adds a Code style section to AGENTS.md (which CLAUDE.md symlinks to) capturing things oxfmt/oxlint won't enforce. Starts with one rule: blank lines around React hook calls.

Test plan

  • N/A — docs only

@AntonNiklasson AntonNiklasson marked this pull request as ready for review May 5, 2026 19:37
Copilot AI review requested due to automatic review settings May 5, 2026 19:37
@AntonNiklasson AntonNiklasson merged commit 0e2d7cf into main May 5, 2026
1 check passed
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a small “Code style” section to AGENTS.md to document formatting preferences that aren’t enforced automatically by oxfmt/oxlint, starting with guidance on visually separating React hook calls with surrounding blank lines.

Changes:

  • Introduces a new “Code style” section in AGENTS.md.
  • Documents a specific convention: blank lines above/below React hook calls (useEffect, useMemo, useCallback, etc.).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants