Merged
Conversation
There was a problem hiding this comment.
Pull Request Overview
This pull request implements comprehensive code formatting and style standardization across the entire codebase by introducing Prettier, Husky, and lint-staged tools. The main objective is to enforce consistent code style and automate formatting processes through pre-commit hooks.
- Added Prettier configuration with automatic code formatting on commit
- Integrated Husky pre-commit hooks to ensure code quality before commits
- Standardized quote usage from double quotes to single quotes throughout all TypeScript/JavaScript files
Reviewed Changes
Copilot reviewed 120 out of 135 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
| .husky/pre-commit | Added pre-commit hook to run lint-staged |
| package.json | Updated with Prettier, Husky, and lint-staged dependencies and scripts |
| .prettierrc & .prettierignore | Added Prettier configuration files |
| src/lib/db.ts | Changed double quotes to single quotes |
| src/lib/TimeTableContext.tsx | Applied Prettier formatting with single quotes and line consolidation |
| src/hooks/useScreenSize.tsx | Added missing semicolons and switched to single quotes |
| src/data/faq.ts | Reformatted multiline strings and switched to single quotes |
| Multiple data files (faculty, course data) | Consistent quote standardization across all data files |
Tip: Customize your code reviews with copilot-instructions.md. Create the file or learn how to get started.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Setup prettier and husky
This pull request introduces project-wide code style improvements, automated formatting tools, and several documentation enhancements. The main focus is on enforcing consistent code formatting using Prettier, integrating linting and formatting checks into the development workflow, and updating documentation for clarity. Additionally, there are many minor changes to unify quote usage across the codebase.
Code Style and Tooling Improvements
.prettierrc) and ignore file (.prettierignore) to enforce consistent code formatting and exclude unnecessary files from formatting. [1] [2]package.jsonwith related scripts and dependencies, and added.husky/pre-commithook. [1] [2] [3]Documentation Updates
README.mdby clarifying feature descriptions, adding spacing for readability, and updating instructions for getting started and meeting the team. [1] [2] [3] [4]CONTRIBUTING.mdwith better structure and additional guidance for contributors. [1] [2]