Closed Bashamega closed 1 month ago
This update integrates Prettier for code formatting across the project, enhancing consistency and readability. Key changes include the addition of Prettier configuration, corresponding scripts in package.json
, and formatting adjustments across various files to align with the new rules. These modifications streamline the codebase and improve its maintainability.
Files | Change Summary |
---|---|
.github/ISSUE_TEMPLATE/bug.yml | Improved formatting for clarity in the issue template. |
.husky/pre-commit | Added formatting check command; integrated potential test command for future use. |
.prettierrc | Created configuration file for Prettier with specific formatting rules (tabWidth, useTabs). |
CHANGELOG.md | Streamlined formatting for clarity in version entries. |
README.md | Adjusted table formatting for better readability. |
package.json | Added scripts for Prettier formatting and included Prettier as a dependency. |
src/** (multiple files) | Minor formatting adjustments (trailing commas) for consistency; no changes in logic. |
src/config/app.json | Added newline for formatting; no other content changes. |
sequenceDiagram
participant Developer
participant Prettier
participant CI/CD
Developer->>Prettier: Format code
alt If code is formatted correctly
Prettier-->>Developer: Code is clean
else If code needs changes
Prettier-->>Developer: Suggest changes
end
Developer->>CI/CD: Commit changes
CI/CD->>Prettier: Run pre-commit hook
Prettier-->>CI/CD: Ensure code format compliance
Objective | Addressed | Explanation |
---|---|---|
Integrate Prettier for code formatting | ✅ | |
Add Prettier to pre-commit hooks | ✅ | |
Ensure code is formatted consistently | ✅ |
🐰 In the land where code does hop,
Prettier came to make it stop,
With tidy lines and spaces bright,
Our code now gleams with pure delight!
Linting, checking, all in place,
A formatted world, a joyful space! 🌟
Thank you for using CodeRabbit. We offer it for free to the OSS community and would appreciate your support in helping us grow. If you find it useful, would you consider giving us a shout-out on your favorite social media?
Fixes Issue
closes #153
Changes proposed
Check List (Check all the applicable boxes)
Screenshots
Note to reviewers
Summary by CodeRabbit
Documentation
Chores
Style