Skip to content

Conversation

@ericelliott
Copy link
Collaborator

  • Add Husky dependency for git hooks

  • Configure pre-commit hook to run tests and linting

  • Update package.json scripts for automatic lint fixing

  • Add prepare script for Husky initialization

- Add Husky dependency for git hooks

- Configure pre-commit hook to run tests and linting

- Update package.json scripts for automatic lint fixing

- Add prepare script for Husky initialization
@ericelliott ericelliott requested a review from Copilot September 28, 2025 16:46
Copy link
Contributor

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 Husky for automated pre-commit validation to ensure code quality before commits are made to the repository.

  • Configure Husky as a development dependency with pre-commit hooks
  • Update lint script to automatically fix issues instead of just reporting them
  • Add prepare script for automatic Husky initialization

Reviewed Changes

Copilot reviewed 7 out of 8 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
package.json Add Husky dependency, update lint script to auto-fix, and add prepare script
.husky/pre-commit Create pre-commit hook that runs tests and linting
lib/release-process-e2e.test.js Fix trailing comma formatting issues
ai/rules/please.mdc Add constraint about API documentation verification
ai/rules/log.mdc Remove "epic" from log descriptions
ai/rules/commit.mdc Use activity log descriptions for commit planning
activity-log.md Update log entries and add Husky implementation entry

Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.

Comment on lines 13 to +15
"format": "prettier --write . && echo 'Format complete.'",
"format:check": "prettier --check . && echo 'Format check complete.'",
"test": "vitest run && echo 'Test complete.' && npm run -s lint"
"test": "vitest run && echo 'Test complete.' && npm run -s lint",
Copy link

Copilot AI Sep 28, 2025

Choose a reason for hiding this comment

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

The test script runs linting with auto-fix, which could modify files during testing. This might cause confusion during CI/CD or when developers expect tests to only validate code without making changes. Consider using a lint check instead of auto-fix in the test pipeline.

Copilot uses AI. Check for mistakes.
@ericelliott ericelliott merged commit 09960ea into main Sep 28, 2025
@ericelliott ericelliott deleted the pre-commit branch September 28, 2025 16:47
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