Skip to content

chore: update prettier config and run prettier - #87

Merged
buzz-code merged 2 commits into
mainfrom
chore/prettier-rollout-20260520
May 20, 2026
Merged

buzz-code merged 2 commits into
mainfrom
chore/prettier-rollout-20260520

Conversation

@buzz-code

Copy link
Copy Markdown
Owner

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.

Copilot AI review requested due to automatic review settings May 20, 2026 07:57

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 .prettierrc with singleQuote, tabWidth: 4, printWidth: 120).
  • Added server/.prettierignore to 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 />,
,
];
@buzz-code
buzz-code merged commit 9c0d42d into main May 20, 2026
3 checks passed
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.

2 participants