Skip to content

Commit

Permalink
Bump prettier from 3.2.5 to 3.4.2 (#6922)
Browse files Browse the repository at this point in the history
* Bump prettier from 3.2.5 to 3.4.2

Bumps [prettier](https://github.com/prettier/prettier) from 3.2.5 to 3.4.2.
- [Release notes](https://github.com/prettier/prettier/releases)
- [Changelog](https://github.com/prettier/prettier/blob/main/CHANGELOG.md)
- [Commits](prettier/prettier@3.2.5...3.4.2)

---
updated-dependencies:
- dependency-name: prettier
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>

* Format code to be compatible with prettier 3.4.2

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Alejandro Celaya <[email protected]>
  • Loading branch information
dependabot[bot] and acelaya authored Dec 16, 2024
1 parent 71fd8a5 commit fc304fc
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ function GroupSelect({
buttonContent={
loading
? 'Fetching group sets…'
: selectedGroupSet?.name ?? 'Select group set'
: (selectedGroupSet?.name ?? 'Select group set')
}
>
{groupSets?.map(gs => (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ export default function SubmitGradeForm({
}

const newComment = acceptComments
? draftGrading.comment ?? grade.data?.comment
? (draftGrading.comment ?? grade.data?.comment)
: undefined;

setGradeSaving(true);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,9 @@ function SegmentsMultiSelect({ segments }: { segments: SegmentsSelection }) {
All {segmentsName}
</ContentWithBadge>
) : segments.selectedIds.length === 1 ? (
segments.entries.find(
(segments.entries.find(
s => s.h_authority_provided_id === segments.selectedIds[0],
)?.name ?? `1 ${segmentNameSingular}`
)?.name ?? `1 ${segmentNameSingular}`)
) : (
<>
{segments.selectedIds.length} {segmentsName}
Expand Down Expand Up @@ -299,8 +299,8 @@ export default function DashboardActivityFilters({
All courses
</ContentWithBadge>
) : selectedCourseIds.length === 1 ? (
coursesResult.data?.find(c => `${c.id}` === selectedCourseIds[0])
?.title ?? '1 course'
(coursesResult.data?.find(c => `${c.id}` === selectedCourseIds[0])
?.title ?? '1 course')
) : (
<>{selectedCourseIds.length} courses</>
)
Expand Down Expand Up @@ -339,9 +339,9 @@ export default function DashboardActivityFilters({
All assignments
</ContentWithBadge>
) : selectedAssignmentIds.length === 1 ? (
assignmentsResults.data?.find(
(assignmentsResults.data?.find(
a => `${a.id}` === selectedAssignmentIds[0],
)?.title ?? '1 assignment'
)?.title ?? '1 assignment')
) : (
<>{selectedAssignmentIds.length} assignments</>
)
Expand Down Expand Up @@ -373,9 +373,9 @@ export default function DashboardActivityFilters({
All students
</ContentWithBadge>
) : students.selectedIds.length === 1 ? (
studentsResult.data?.find(
(studentsResult.data?.find(
s => s.h_userid === students.selectedIds[0],
)?.display_name ?? '1 student'
)?.display_name ?? '1 student')
) : (
<>{students.selectedIds.length} students</>
)
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
"karma-source-map-support": "^1.4.0",
"mocha": "^10.2.0",
"navigation-api-types": "^0.5.1",
"prettier": "3.2.5",
"prettier": "3.4.2",
"sinon": "^19.0.2",
"typescript": "^5.2.2",
"typescript-eslint": "^8.16.0"
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -7340,7 +7340,7 @@ __metadata:
normalize.css: ^8.0.1
postcss: ^8.4.47
preact: ^10.25.1
prettier: 3.2.5
prettier: 3.4.2
rollup: ^4.28.0
sass: ^1.80.5
sinon: ^19.0.2
Expand Down Expand Up @@ -8657,12 +8657,12 @@ __metadata:
languageName: node
linkType: hard

"prettier@npm:3.2.5":
version: 3.2.5
resolution: "prettier@npm:3.2.5"
"prettier@npm:3.4.2":
version: 3.4.2
resolution: "prettier@npm:3.4.2"
bin:
prettier: bin/prettier.cjs
checksum: 2ee4e1417572372afb7a13bb446b34f20f1bf1747db77cf6ccaf57a9be005f2f15c40f903d41a6b79eec3f57fff14d32a20fb6dee1f126da48908926fe43c311
checksum: 061c84513db62d3944c8dc8df36584dad82883ce4e49efcdbedd8703dce5b173c33fd9d2a4e1725d642a3b713c932b55418342eaa347479bc4a9cca114a04cd0
languageName: node
linkType: hard

Expand Down

0 comments on commit fc304fc

Please sign in to comment.