Skip to content

Commit b344a59

Browse files
authored
Merge pull request #7074 from StoDevX/renovate/prettier-3.x
Update dependency prettier to v3
2 parents 11b3a27 + ac8028b commit b344a59

File tree

9 files changed

+27
-25
lines changed

9 files changed

+27
-25
lines changed

modules/constants/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,8 +55,8 @@ export const userAgent: () => string = () => {
5555
Platform.OS === 'ios'
5656
? 'iOS'
5757
: Platform.OS === 'android'
58-
? 'Android'
59-
: 'unknown'
58+
? 'Android'
59+
: 'unknown'
6060

6161
const platformVersion = Platform.Version || 'unknown'
6262

modules/navigation-tabs/tabbar-icon.tsx

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,12 @@ type Props = {
1919

2020
export const IosIcon =
2121
(icon: keyof typeof IoniconsGlyphs) =>
22-
({color}: Props): JSX.Element =>
22+
({color}: Props): JSX.Element => (
2323
<Ionicon name={icon} style={[styles.icon, {color: color}]} />
24+
)
2425

2526
export const MaterialIcon =
2627
(icon: keyof typeof MaterialCommunityIconsGlyphs) =>
27-
({color}: Props): JSX.Element =>
28+
({color}: Props): JSX.Element => (
2829
<MaterialCommunityIcon name={icon} style={[{color: color}]} />
30+
)

package-lock.json

Lines changed: 8 additions & 8 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@
147147
"minimist": "1.2.8",
148148
"mkdirp": "2.1.4",
149149
"pify": "6.1.0",
150-
"prettier": "2.8.4",
150+
"prettier": "3.1.0",
151151
"pretty-bytes": "6.1.0",
152152
"pretty-quick": "3.1.3",
153153
"string-natural-compare": "3.0.1",

source/views/directory/helpers.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ const descriptionText = (
6363
shortRoom && item.title
6464
? `${shortRoom}${item.title}`
6565
: shortRoom
66-
? shortRoom
67-
: item.title
66+
? shortRoom
67+
: item.title
6868

6969
return description && decode(description)
7070
}

source/views/settings/screens/overview/component-library/colors.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -300,8 +300,8 @@ function VariantColorsExample() {
300300
Platform.OS === 'ios'
301301
? DynamicColorIOS({light: 'red', dark: 'blue'})
302302
: Platform.OS === 'android'
303-
? PlatformColor('?attr/colorAccent')
304-
: 'red',
303+
? PlatformColor('?attr/colorAccent')
304+
: 'red',
305305
}}
306306
/>
307307
</View>

source/views/sis/course-search/results.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -221,8 +221,8 @@ export const CourseSearchResultsView = (): JSX.Element => {
221221
let message = hasActiveFilter
222222
? 'There were no courses that matched your selected filters. Try a different filter combination.'
223223
: query?.length
224-
? 'There were no courses that matched your query. Please try again.'
225-
: "You can search by Professor (e.g. 'Jill Dietz'), Course Name (e.g. 'Abstract Algebra'), Department/Number (e.g. MATH 252), or GE (e.g. WRI)"
224+
? 'There were no courses that matched your query. Please try again.'
225+
: "You can search by Professor (e.g. 'Jill Dietz'), Course Name (e.g. 'Abstract Algebra'), Department/Number (e.g. MATH 252), or GE (e.g. WRI)"
226226

227227
let messageView = <NoticeView style={styles.message} text={message} />
228228

source/views/stoprint/print-release.tsx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -179,10 +179,10 @@ export const PrintJobReleaseView = (): JSX.Element => {
179179
let status = releaseJob.isLoading
180180
? 'printing'
181181
: cancelJob.isLoading
182-
? 'cancelling'
183-
: job?.statusFormatted === 'Pending Release'
184-
? 'pending'
185-
: 'complete'
182+
? 'cancelling'
183+
: job?.statusFormatted === 'Pending Release'
184+
? 'pending'
185+
: 'complete'
186186

187187
let actionAvailable = status !== 'complete' && printer
188188

source/views/streaming/webcams/thumbnail.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,8 @@ export const StreamThumbnail = (props: Props): JSX.Element => {
3232
let img = thumbnailUrl
3333
? {uri: thumbnailUrl}
3434
: webcamImages.has(thumbnail)
35-
? webcamImages.get(thumbnail)
36-
: transparentPixel
35+
? webcamImages.get(thumbnail)
36+
: transparentPixel
3737

3838
return (
3939
// do not remove this View; it is needed to prevent extra highlighting

0 commit comments

Comments
 (0)