Skip to content

Conversation

@johnlindquist
Copy link
Owner

@johnlindquist johnlindquist commented Jul 11, 2025

Summary

  • Applied consistent Biome formatting to TypeScript hook template files
  • Updated VS Code settings for proper Biome formatter configuration
  • Fixed bracket spacing to match project's biome.json configuration

Test plan

  • All unit tests pass
  • Integration tests pass
  • Formatting is consistent with project standards

🤖 Generated with Claude Code

Summary by CodeRabbit

  • Chores

    • Introduced a new configuration file to define permitted Bash commands in the local environment.
    • Updated VSCode settings to simplify color customizations and set "biome" as the default code formatter with format-on-save enabled.
  • Refactor

    • Improved import statements in hooks to clearly separate type imports from value imports.

- Format TypeScript imports to use consistent style
- Apply spacing and formatting rules to match project standards
- Update VS Code settings for Biome formatter configuration

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <[email protected]>
@johnlindquist johnlindquist enabled auto-merge (squash) July 11, 2025 16:53
@coderabbitai
Copy link

coderabbitai bot commented Jul 11, 2025

Walkthrough

A new local JSON configuration for Bash command permissions is introduced. VSCode settings are updated to use Biome as the default formatter and enable format-on-save. Imports in the templates/hooks/index.ts file are refactored to distinguish between type and value imports, without changing functionality.

Changes

File(s) Change Summary
.claude/settings.local.json Added a configuration file specifying allowed Bash commands and an empty deny list.
.vscode/settings.json Removed custom color settings, set Biome as the default formatter, and enabled format-on-save.
templates/hooks/index.ts Refactored imports to separate type-only from value imports; no logic changes.

Possibly related PRs

Suggested labels

released

Poem

A rabbit hops through code so bright,
With Biome formatting—oh, what a sight!
Permissions set, commands allowed,
Clean imports make the bunny proud.
In VSCode fields, the carrots grow—
Formatting neat from head to toe!
🥕✨

✨ Finishing Touches
  • 📝 Generate Docstrings

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share
🪧 Tips

Chat

There are 3 ways to chat with CodeRabbit:

  • Review comments: Directly reply to a review comment made by CodeRabbit. Example:
    • I pushed a fix in commit <commit_id>, please review it.
    • Explain this complex logic.
    • Open a follow-up GitHub issue for this discussion.
  • Files and specific lines of code (under the "Files changed" tab): Tag @coderabbitai in a new review comment at the desired location with your query. Examples:
    • @coderabbitai explain this code block.
    • @coderabbitai modularize this function.
  • PR comments: Tag @coderabbitai in a new PR comment to ask questions about the PR branch. For the best results, please provide a very specific query, as very limited context is provided in this mode. Examples:
    • @coderabbitai gather interesting stats about this repository and render them as a table. Additionally, render a pie chart showing the language distribution in the codebase.
    • @coderabbitai read src/utils.ts and explain its main purpose.
    • @coderabbitai read the files in the src/scheduler package and generate a class diagram using mermaid and a README in the markdown format.
    • @coderabbitai help me debug CodeRabbit configuration file.

Support

Need help? Create a ticket on our support page for assistance with any issues or questions.

Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments.

CodeRabbit Commands (Invoked using PR comments)

  • @coderabbitai pause to pause the reviews on a PR.
  • @coderabbitai resume to resume the paused reviews.
  • @coderabbitai review to trigger an incremental review. This is useful when automatic reviews are disabled for the repository.
  • @coderabbitai full review to do a full review from scratch and review all the files again.
  • @coderabbitai summary to regenerate the summary of the PR.
  • @coderabbitai generate docstrings to generate docstrings for this PR.
  • @coderabbitai generate sequence diagram to generate a sequence diagram of the changes in this PR.
  • @coderabbitai resolve resolve all the CodeRabbit review comments.
  • @coderabbitai configuration to show the current CodeRabbit configuration for the repository.
  • @coderabbitai help to get help.

Other keywords and placeholders

  • Add @coderabbitai ignore anywhere in the PR description to prevent this PR from being reviewed.
  • Add @coderabbitai summary to generate the high-level summary at a specific location in the PR description.
  • Add @coderabbitai anywhere in the PR title to generate the title automatically.

CodeRabbit Configuration File (.coderabbit.yaml)

  • You can programmatically configure CodeRabbit by adding a .coderabbit.yaml file to the root of your repository.
  • Please see the configuration documentation for more information.
  • If your editor has YAML language server enabled, you can add the path at the top of this file to enable auto-completion and validation: # yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json

Documentation and Community

  • Visit our Documentation for detailed information on how to use CodeRabbit.
  • Join our Discord Community to get help, request features, and share feedback.
  • Follow us on X/Twitter for updates and announcements.

Copy link

@coderabbitai coderabbitai bot left a comment

Choose a reason for hiding this comment

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

Actionable comments posted: 0

🧹 Nitpick comments (1)
.claude/settings.local.json (1)

1-18: LGTM! Well-structured permissions configuration.

The permissions policy appropriately allows essential development commands while maintaining security through explicit allowlisting. The configuration aligns well with the project's tooling needs (git, bun, GitHub CLI, biome formatter).

Consider adding a comment at the top of the file documenting the purpose and structure of the permissions policy for future maintainers:

+{
+  // Local permissions for Claude hooks - allows specific bash commands
+  // Format: "Bash(command:*)" where * allows parameters
 {
   "permissions": {
📜 Review details

Configuration used: CodeRabbit UI
Review profile: CHILL
Plan: Pro

📥 Commits

Reviewing files that changed from the base of the PR and between 5eff54a and 1bdd029.

📒 Files selected for processing (3)
  • .claude/settings.local.json (1 hunks)
  • .vscode/settings.json (1 hunks)
  • templates/hooks/index.ts (1 hunks)
🧰 Additional context used
📓 Path-based instructions (1)
templates/**/*

Instructions used from:

Sources:
📄 CodeRabbit Inference Engine

  • CLAUDE.md
🧠 Learnings (3)
📓 Common learnings
Learnt from: CR
PR: johnlindquist/claude-hooks#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-07T16:54:50.723Z
Learning: Applies to package.json : The project must use ESM modules (package.json must include '"type": "module"').
Learnt from: CR
PR: johnlindquist/claude-hooks#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-07T16:54:50.723Z
Learning: Applies to .claude/{settings.json,hooks/index.ts,hooks/lib.ts,hooks/session.ts} : The CLI generates a '.claude/' directory containing 'settings.json', 'hooks/index.ts', 'hooks/lib.ts', and 'hooks/session.ts' when initialized.
Learnt from: CR
PR: johnlindquist/claude-hooks#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-07T16:54:50.723Z
Learning: Applies to tsconfig.json : TypeScript strict mode must be enabled.
templates/hooks/index.ts (2)
Learnt from: CR
PR: johnlindquist/claude-hooks#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-07T16:54:50.723Z
Learning: Applies to .claude/{settings.json,hooks/index.ts,hooks/lib.ts,hooks/session.ts} : The CLI generates a '.claude/' directory containing 'settings.json', 'hooks/index.ts', 'hooks/lib.ts', and 'hooks/session.ts' when initialized.
Learnt from: CR
PR: johnlindquist/claude-hooks#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-07T16:54:50.723Z
Learning: Hooks are executed using the Bun runtime, which is a required dependency.
.claude/settings.local.json (1)
Learnt from: CR
PR: johnlindquist/claude-hooks#0
File: CLAUDE.md:0-0
Timestamp: 2025-07-07T16:54:50.723Z
Learning: Applies to .claude/{settings.json,hooks/index.ts,hooks/lib.ts,hooks/session.ts} : The CLI generates a '.claude/' directory containing 'settings.json', 'hooks/index.ts', 'hooks/lib.ts', and 'hooks/session.ts' when initialized.
⏰ Context from checks skipped due to timeout of 90000ms. You can increase the timeout in your CodeRabbit configuration to a maximum of 15 minutes (900000ms). (4)
  • GitHub Check: test (macos-latest, 20)
  • GitHub Check: test (windows-latest, 18)
  • GitHub Check: test (windows-latest, 20)
  • GitHub Check: test (ubuntu-latest, 18)
🔇 Additional comments (2)
templates/hooks/index.ts (1)

3-12: LGTM! Excellent TypeScript import formatting.

The refactoring to separate type imports from value imports is a modern TypeScript best practice that improves code clarity and aligns with Biome formatter standards. This change enhances readability without affecting functionality.

.vscode/settings.json (1)

11-22: LGTM! Excellent Biome formatter configuration.

The VSCode settings perfectly align with the PR objectives by:

  • Setting Biome as the default formatter globally and for specific file types
  • Enabling format-on-save for automatic consistency
  • Ensuring all team members use the same formatting standards

This configuration will significantly improve code consistency across the project.

@johnlindquist johnlindquist merged commit f99cbef into main Jul 11, 2025
10 checks passed
@github-actions
Copy link
Contributor

🎉 This PR is included in version 1.4.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants