Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Jun 6, 2025

This PR adds prettier code formatting to the project with automatic format validation in CI.

Changes Made

  • Added prettier dependency - Installed prettier as a dev dependency
  • Created prettier configuration - Added .prettierrc with TypeScript-friendly settings:
    • Single quotes
    • Semicolons enabled
    • 2-space indentation
    • 80 character line width
    • ES5 trailing commas
  • Created .prettierignore - Excludes node_modules/, dist/, coverage reports, logs, and the cloned documentation
  • Added npm scripts:
    • npm run format - Format all files
    • npm run format:check - Check if files are properly formatted
  • Updated GitHub Actions workflow - Added format validation step that runs before build and tests
  • Formatted all existing code - Applied prettier formatting to all TypeScript, JavaScript, JSON, YAML, and Markdown files

Validation

  • ✅ All existing tests pass
  • ✅ Code builds successfully
  • ✅ Format validation passes
  • ✅ CI workflow includes format checking

The formatting step in CI will now catch any code style issues and ensure consistent formatting across the codebase.

Fixes #13.


💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.

Copilot AI changed the title [WIP] Add prettier Add prettier configuration and code formatting Jun 6, 2025
Copilot AI requested a review from abraham June 6, 2025 23:29
@abraham abraham marked this pull request as ready for review June 6, 2025 23:30
@abraham abraham merged commit 3e60938 into main Jun 6, 2025
1 check passed
@abraham abraham deleted the copilot/fix-13 branch June 6, 2025 23:32
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.

Add prettier

2 participants