Repository navigation
chore: update prettier config and run prettier - #87
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR updates Prettier configuration across the monorepo and applies Prettier formatting to align code style and reduce future diffs between contributors and tooling.
Changes:
- Updated Prettier configs (server:
printWidth: 120; client: new.prettierrcwithsingleQuote,tabWidth: 4,printWidth: 120). - Added
server/.prettierignoreto skip formatting migrations. - Ran Prettier across server/client code (mostly quote/indentation/trailing comma normalization).
Reviewed changes
Copilot reviewed 146 out of 152 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| server/src/yemot-handler.service.ts | Prettier formatting (quotes/semicolons/trailing commas). |
| server/src/user-initialization.service.ts | Prettier formatting (constructor + map formatting). |
| server/src/user-init.module.ts | Prettier formatting (module decorator formatting). |
| server/src/reports/studentReportCard.ts | Prettier formatting (options indentation). |
| server/src/reports/tests/teacherReportFile.spec.ts | Prettier formatting (trailing commas/array formatting). |
| server/src/reports/tests/reportGenerator.spec.ts | Prettier formatting (multiline imports/objects). |
| server/src/reports/tests/michlolPopulatedFile.spec.ts | Prettier formatting (expect chains/arrow params). |
| server/src/entity-modules/teacher.config.ts | Prettier formatting (quotes/indentation). |
| server/src/entity-modules/teacher-salary-report.config.ts | Prettier formatting (quotes/indentation/trailing commas). |
| server/src/entity-modules/teacher-report-status.config.ts | Prettier formatting (quotes/indentation). |
| server/src/entity-modules/teacher-grade-report-status.config.ts | Prettier formatting (quotes/indentation). |
| server/src/entity-modules/student.config.ts | Prettier formatting (quotes/indentation; long call wrapping). |
| server/src/entity-modules/student-klass-report.config.ts | Prettier formatting (quotes/indentation). |
| server/src/entity-modules/lesson.config.ts | Prettier formatting (quotes/indentation). |
| server/src/entity-modules/known-absence.config.ts | Prettier formatting (quotes/indentation). |
| server/src/entity-modules/klass-type.config.ts | Prettier formatting (quotes/indentation; array literal formatting). |
| server/src/entity-modules/absenceType.config.ts | Prettier formatting (export default line indentation). |
| server/src/entity-modules/tests/teacher.config.spec.ts | Prettier formatting (expect formatting). |
| server/src/entity-modules/tests/student.config.spec.ts | Prettier formatting (trailing commas; spy formatting). |
| server/src/entity-modules/tests/student-percent-report.config.spec.ts | Prettier formatting (array/object formatting). |
| server/src/entity-modules/tests/student-klass.config.spec.ts | Prettier formatting (factory formatting; arrow params). |
| server/src/entity-modules/tests/klass.config.spec.ts | Prettier formatting (expect/object formatting). |
| server/src/entity-modules/tests/klass-type.config.spec.ts | Prettier formatting (expect formatting). |
| server/src/entity-modules/tests/att-report.config.spec.ts | Prettier formatting (indentation/expect formatting). |
| server/src/db/view-entities/TeacherSalaryReport.entity.ts | Prettier formatting (ViewEntity expression wrapping). |
| server/src/db/view-entities/TeacherReportStatus.entity.ts | Prettier formatting (ViewEntity expression wrapping). |
| server/src/db/view-entities/TeacherLessonReportStatus.entity.ts | Prettier formatting (join wrapping). |
| server/src/db/view-entities/TeacherLessonGradeReportStatus.entity.ts | Prettier formatting (where/join wrapping). |
| server/src/db/view-entities/TeacherGradeReportStatus.entity.ts | Prettier formatting (ViewEntity expression wrapping). |
| server/src/db/view-entities/StudentSpeciality.entity.ts | Prettier formatting (ViewEntity expression wrapping + quotes). |
| server/src/db/view-entities/StudentPercentReport.entity.ts | Prettier formatting (ViewEntity expression wrapping + trailing commas). |
| server/src/db/view-entities/StudentByYear.entity.ts | Prettier formatting (ViewEntity expression wrapping + quotes). |
| server/src/db/view-entities/StudentBaseKlass.entity.ts | Prettier formatting (ViewEntity expression wrapping + quotes). |
| server/src/db/view-entities/LessonKlassName.entity.ts | Prettier formatting (import wrapping + quotes). |
| server/src/db/view-entities/KnownAbsenceWithReportMonth.entity.ts | Prettier formatting (join wrapping). |
| server/src/db/view-entities/GradeWithReportMonth.entity.ts | Prettier formatting (join wrapping). |
| server/src/db/view-entities/GradeEffectByUser.entity.ts | Prettier formatting (import wrapping + indentation). |
| server/src/db/view-entities/AttReportWithReportMonth.entity.ts | Prettier formatting (join wrapping; arrow params). |
| server/src/db/view-entities/AttReportAndGrade.entity.ts | Prettier formatting (SQL template indentation + quotes). |
| server/src/db/view-entities/AbsCountEffectByUser.entity.ts | Prettier formatting (import wrapping + indentation). |
| server/src/db/entities/User.entity.ts | Prettier formatting (quotes/indentation). |
| server/src/db/entities/Transportation.entity.ts | Prettier formatting (collapsed import; quote normalization). |
| server/src/db/entities/Teacher.entity.ts | Prettier formatting (collapsed import; quote normalization). |
| server/src/db/entities/Student.entity.ts | Prettier formatting (collapsed import; quote normalization). |
| server/src/db/entities/ReportMonth.entity.ts | Prettier formatting (quote normalization; decorator indentation). |
| server/src/db/entities/ReportGroupSession.entity.ts | Prettier formatting (quote normalization; relation arrow params). |
| server/src/db/entities/ReportGroup.entity.ts | Prettier formatting (quote normalization; relation arrow params). |
| server/src/db/entities/KlassType.entity.ts | Prettier formatting (quote normalization; multiline call wrapping). |
| server/src/db/entities/GradeName.entity.ts | Prettier formatting (collapsed import; quote normalization). |
| server/src/db/entities/AttGradeEffect.ts | Prettier formatting (collapsed import; quote normalization). |
| server/src/db/entities/AttendanceName.entity.ts | Prettier formatting (collapsed import; quote normalization). |
| server/src/db/entities/AbsenceType.entity.ts | Prettier formatting (collapsed import; quote normalization). |
| server/.prettierrc | Added printWidth: 120 and normalized trailing commas. |
| server/.prettierignore | Ignored src/migrations/ from Prettier runs. |
| client/src/utils/storeUtil.ts | Prettier formatting (removed trailing whitespace line). |
| client/src/utils/appPermissions.js | Prettier formatting (indentation + wrapped arrow functions). |
| client/src/settings/settingsUtil.js | Prettier formatting (quotes/commas/semicolons). |
| client/src/settings/Settings.jsx | Prettier formatting (import wrapping; JSX formatting). |
| client/src/settings/ReportStylesInput.jsx | Prettier formatting (indentation; trailing commas; JSX formatting). |
| client/src/settings/ReportCardSettingsInput.jsx | Prettier formatting (indentation; Link formatting). |
| client/src/settings/GeneralSettingsInput.jsx | Prettier formatting (arrow params; JSX formatting). |
| client/src/settings/DashboardItemsInput.jsx | Prettier formatting (JSX formatting; trailing commas). |
| client/src/RootDashboard.jsx | Prettier formatting (indentation; else-if formatting). |
| client/src/roadmapFeatures.js | Prettier formatting (no-op style normalization). |
| client/src/reportWebVitals.js | Prettier formatting (arrow params; indentation). |
| client/src/reports/studentReportCardReactButton.jsx | Prettier formatting (JSX props formatting). |
| client/src/reports/in-lesson-report/TeacherSelector.jsx | Prettier formatting (indentation; wrapped callbacks/JSX). |
| client/src/reports/in-lesson-report/ReportHeader.jsx | Prettier formatting (removed trailing whitespace). |
| client/src/reports/in-lesson-report/MainReport.jsx | Prettier formatting (collapsed JSX props). |
| client/src/reports/in-lesson-report/LessonSelector.jsx | Prettier formatting (indentation; wrapped Promise.all/JSX). |
| client/src/reports/in-lesson-report/index.jsx | Prettier formatting (wrapped callbacks; indentation). |
| client/src/reports/in-lesson-report/FormActions.jsx | Prettier formatting (Button formatting). |
| client/src/pivots/StudentAttendanceList.jsx | Prettier formatting (import wrapping; JSX props wrapping). |
| client/src/pivots/PercentReportWithDatesList.jsx | Prettier formatting (import wrapping; JSX props wrapping). |
| client/src/openopserve.config.ts | Prettier formatting (wrapped long boolean expression). |
| client/src/index.jsx | Prettier formatting (indentation; trailing comma). |
| client/src/entities/transportation.jsx | Prettier formatting (quote normalization; indentation). |
| client/src/entities/teacher.jsx | Prettier formatting (import wrapping; component formatting). |
| client/src/entities/teacher-salary-report.jsx | Prettier formatting (wrapped JSX props). |
| client/src/entities/teacher-report-status.jsx | Prettier formatting (import wrapping; wrapped JSX props). |
| client/src/entities/teacher-grade-report-status.jsx | Prettier formatting (import wrapping; wrapped JSX props). |
| client/src/entities/student.jsx | Prettier formatting, but introduced a syntax error in filters (see PR comments). |
| client/src/entities/student-percent-report.jsx | Prettier formatting (import wrapping; wrapped JSX props). |
| client/src/entities/student-klasses-report.jsx | Prettier formatting (import wrapping; wrapped JSX props). |
| client/src/entities/student-klass.jsx | Prettier formatting (import wrapping; wrapped JSX props). |
| client/src/entities/report-month.jsx | Prettier formatting (import wrapping; arrow params). |
| client/src/entities/report-group.jsx | Prettier formatting (import wrapping; wrapped JSX props). |
| client/src/entities/report-group-session.jsx | Prettier formatting (import wrapping; wrapped JSX props). |
| client/src/entities/klass-type.jsx | Prettier formatting (wrapped JSX props; arrow params). |
| client/src/entities/grade-name.jsx | Prettier formatting (import wrapping; array literal formatting). |
| client/src/entities/attendance-name.jsx | Prettier formatting (import wrapping; array literal formatting). |
| client/src/entities/att-grade-effect.jsx | Prettier formatting (import wrapping; component formatting). |
| client/src/entities/absenceType.jsx | Prettier formatting (quote normalization; JSX formatting). |
| client/src/components/TeacherView/taecher-att-report-list.jsx | Prettier formatting (quote normalization; indentation). |
| client/src/components/TeacherView/student-attendance-list.jsx | Prettier formatting (quote normalization; indentation). |
| client/src/components/TeacherView/percent-report-with-dates-list.jsx | Prettier formatting (quote normalization; indentation). |
| client/src/components/TeacherView/lead-teacher-att-report-list.jsx | Prettier formatting (quote normalization; indentation). |
| client/src/components/LessonSignatureFields.jsx | Prettier formatting (indentation/JSX formatting). |
| client/src/components/BulkApproveAbsences.jsx | Prettier formatting (import wrapping; JSX formatting). |
| client/src/components/ApprovedAbsencesUpload/useApplyAction.js | Prettier formatting (indentation; wrapped expressions). |
| client/src/components/ApprovedAbsencesUpload/PreviewSummary.jsx | Prettier formatting (collapsed JSX). |
| client/src/components/ApprovedAbsencesUpload/FileUploadSection.jsx | Prettier formatting (collapsed JSX props). |
| client/src/components/ApprovedAbsencesUpload/ConfigurationForm.jsx | Prettier formatting (collapsed JSX props). |
| client/src/components/ApprovedAbsencesUpload/ActionButtons.jsx | Prettier formatting (collapsed JSX props). |
| client/src/components/ApprovedAbsencesUpload.jsx | Prettier formatting (trailing commas; collapsed JSX). |
| client/src/App.test.js | Prettier formatting (indentation). |
| client/.prettierrc | Added client Prettier configuration (singleQuote/tabWidth/printWidth). |
Comment on lines
31
to
38
| const filters = [ | ||
| ...commonAdminFilters, | ||
| <TextInput source="tz:$cont" label="תז" />, | ||
| <TextInput source="phone:$cont" label="טלפון" />, | ||
| <TextInput source="name:$cont" alwaysOn />, | ||
| <NullableBooleanInput source="isActive" alwaysOn />,, | ||
| <NullableBooleanInput source="isActive" alwaysOn />, | ||
| , | ||
| ]; |
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.
Updates prettier config to match existing code style to minimize diff. Adds printWidth: 120 to server, adds .prettierignore to skip migrations, and adds client .prettierrc with singleQuote + tabWidth: 4.