fix: apply prettier formatting to documentation files#405
Conversation
Add detailed onboarding instructions for Copilot and other coding agents, including: - Project overview and architecture - Critical Node.js version requirements (20.x strict) - Validated build, test, and lint command sequences with timing - Pre-commit hook behavior and CI/CD pipeline details - Project structure with key file locations - Common pitfalls and solutions - Configuration file reference All commands were validated by execution to ensure accuracy.
- Fix lint:eslint:fix script that referenced non-existent 'eslint' command - Change to call eslint directly with --fix flag - Apply auto-fixes to test files (remove redundant intermediate variables) - Update copilot-instructions.md to remove resolved bug warning - Reduce Common Pitfalls list from 7 to 6 items The lint:fix command now works correctly.
Auto-formatting changes: - Add blank lines in copilot-instructions.md for better readability - Normalize quotes in README.md (double to single quotes)
WalkthroughAdds AI instructions documentation for the GitHub Action Readme Generator project and refactors test mock imports to eliminate intermediate variables. Updates the lint:eslint:fix npm script with explicit ESLint configuration, color output, and targeted paths for linting and fixing. Changes
Estimated code review effort🎯 2 (Simple) | ⏱️ ~10 minutes
Possibly related PRs
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (1 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
📜 Recent review detailsConfiguration used: Path: .coderabbit.yaml Review profile: CHILL Plan: Pro ⛔ Files ignored due to path filters (2)
📒 Files selected for processing (6)
🧰 Additional context used📓 Path-based instructions (1)__tests__/**.*⚙️ CodeRabbit configuration file
Files:
🪛 GitHub Actions: Tag and Release Updated NPM Packagepackage.json[error] Test suite failed: one test failed in integration-335. The overall npm test step failed. 🪛 LanguageTool.github/copilot-instructions.md[style] ~120-~120: Consider shortening or rephrasing this to strengthen your wording. (MAKE_CHANGES) [uncategorized] ~169-~169: The official name of this software platform is spelled with a capital “H”. (GITHUB) [uncategorized] ~175-~175: The official name of this software platform is spelled with a capital “H”. (GITHUB) [uncategorized] ~180-~180: The official name of this software platform is spelled with a capital “H”. (GITHUB) 🔇 Additional comments (8)
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. Comment |
…tZ78DKPHxX9PYXPeA
There was a problem hiding this comment.
Pull Request Overview
This PR addresses code quality improvements by fixing ESLint violations and simplifying redundant code patterns. The changes include:
- Fixed a redundant script reference in package.json where
lint:eslint:fixincorrectly referencednpm run eslintinstead of directly invokingeslint - Simplified async import patterns in test files by removing unnecessary intermediate variable assignments
- Added comprehensive coding guidelines documentation for the project
Reviewed Changes
Copilot reviewed 6 out of 8 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| package.json | Fixed incorrect npm script reference in lint:eslint:fix command |
| tests/readme-generator.test.ts | Simplified mock import by removing unnecessary intermediate variable |
| tests/inputs.test.ts | Simplified mock import by removing unnecessary intermediate variable |
| tests/helpers.test.ts | Simplified mock import by removing unnecessary intermediate variable |
| tests/action.test.ts | Simplified mock import by removing unnecessary intermediate variable |
| dist/mjs/inputs.js.map | Auto-generated source map file (build artifact) |
| .github/copilot-instructions.md | Added comprehensive project documentation and coding guidelines |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Description
Type of Change
Related Issues
Changes Made
Testing
Checklist
Screenshots (if applicable)
Additional Notes
Summary by CodeRabbit
Documentation
Tests
Chores