From b5ac6f8fbaa20387e2e2162845c9bc7120aa8ab2 Mon Sep 17 00:00:00 2001 From: Samuel Newman Date: Tue, 12 May 2026 18:56:22 +0300 Subject: [PATCH] use latest prettier --- package.json | 2 +- pnpm-lock.yaml | 2 +- src/ageAssurance/data.tsx | 10 +++++----- src/components/Link.tsx | 12 ++++++------ src/components/PostControls/index.tsx | 4 ++-- src/components/verification/index.ts | 6 +++--- src/screens/Settings/FollowingFeedPreferences.tsx | 2 +- src/state/shell/composer/index.tsx | 6 +++--- src/view/shell/bottom-bar/BottomBar.tsx | 15 +++++++-------- 9 files changed, 29 insertions(+), 30 deletions(-) diff --git a/package.json b/package.json index aab5817d32..7cc235d6bb 100644 --- a/package.json +++ b/package.json @@ -287,7 +287,7 @@ "jest-expo": "~54.0.17", "jest-junit": "^16.0.0", "lint-staged": "^13.2.3", - "prettier": "^3.6.0", + "prettier": "^3.8.3", "react-native-dotenv": "^3.4.11", "react-refresh": "^0.14.0", "svgo": "^3.3.2", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index 59acfcebe3..f82f534851 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -639,7 +639,7 @@ importers: specifier: ^13.2.3 version: 13.3.0 prettier: - specifier: ^3.6.0 + specifier: ^3.8.3 version: 3.8.3 react-native-dotenv: specifier: ^3.4.11 diff --git a/src/ageAssurance/data.tsx b/src/ageAssurance/data.tsx index fc7f2c2b80..36a06fbd22 100644 --- a/src/ageAssurance/data.tsx +++ b/src/ageAssurance/data.tsx @@ -308,11 +308,11 @@ export function useServerStateQuery() { const geolocation = device.get(['mergedGeolocation']) const isAArequired = Boolean( config && - geolocation && - !!getAgeAssuranceRegionConfig(config, { - countryCode: geolocation?.countryCode ?? '', - regionCode: geolocation?.regionCode, - }), + geolocation && + !!getAgeAssuranceRegionConfig(config, { + countryCode: geolocation?.countryCode ?? '', + regionCode: geolocation?.regionCode, + }), ) // only refetch when needed diff --git a/src/components/Link.tsx b/src/components/Link.tsx index 7d55a5f48b..5e111891bd 100644 --- a/src/components/Link.tsx +++ b/src/components/Link.tsx @@ -125,9 +125,9 @@ export function useLink({ const requiresWarning = Boolean( !disableMismatchWarning && - displayText && - isExternal && - linkRequiresWarning(href, displayText), + displayText && + isExternal && + linkRequiresWarning(href, displayText), ) if (IS_WEB) { @@ -220,9 +220,9 @@ export function useLink({ const handleLongPress = useCallback(() => { const requiresWarning = Boolean( !disableMismatchWarning && - displayText && - isExternal && - linkRequiresWarning(href, displayText), + displayText && + isExternal && + linkRequiresWarning(href, displayText), ) if (requiresWarning) { diff --git a/src/components/PostControls/index.tsx b/src/components/PostControls/index.tsx index eaaf0f6864..99bcf95a46 100644 --- a/src/components/PostControls/index.tsx +++ b/src/components/PostControls/index.tsx @@ -96,8 +96,8 @@ let PostControls = ({ const playHaptic = useHaptics() const isBlocked = Boolean( post.author.viewer?.blocking || - post.author.viewer?.blockedBy || - post.author.viewer?.blockingByList, + post.author.viewer?.blockedBy || + post.author.viewer?.blockingByList, ) const replyDisabled = post.viewer?.replyDisabled const {gtPhone} = useBreakpoints() diff --git a/src/components/verification/index.ts b/src/components/verification/index.ts index 7a83a160a9..61a237cf24 100644 --- a/src/components/verification/index.ts +++ b/src/components/verification/index.ts @@ -45,9 +45,9 @@ export function useFullVerificationState({ verifications.length > 0 const hasIssuedVerification = Boolean( viewerState && - viewerState.role === 'verifier' && - profileState.role === 'default' && - verifications.find(v => v.issuer === currentAccount?.did), + viewerState.role === 'verifier' && + profileState.role === 'default' && + verifications.find(v => v.issuer === currentAccount?.did), ) return { diff --git a/src/screens/Settings/FollowingFeedPreferences.tsx b/src/screens/Settings/FollowingFeedPreferences.tsx index 6fa0e2fc37..265019d563 100644 --- a/src/screens/Settings/FollowingFeedPreferences.tsx +++ b/src/screens/Settings/FollowingFeedPreferences.tsx @@ -45,7 +45,7 @@ export function FollowingFeedPreferencesScreen({}: Props) { const mergeFeedEnabled = Boolean( variables?.lab_mergeFeedEnabled ?? - preferences?.feedViewPrefs?.lab_mergeFeedEnabled, + preferences?.feedViewPrefs?.lab_mergeFeedEnabled, ) return ( diff --git a/src/state/shell/composer/index.tsx b/src/state/shell/composer/index.tsx index c29fb41872..9a1e212f48 100644 --- a/src/state/shell/composer/index.tsx +++ b/src/state/shell/composer/index.tsx @@ -97,9 +97,9 @@ export function Provider({children}: React.PropsWithChildren<{}>) { const author = opts.replyTo?.author || opts.quote?.author const isBlocked = Boolean( author && - (author.viewer?.blocking || - author.viewer?.blockedBy || - author.viewer?.blockingByList), + (author.viewer?.blocking || + author.viewer?.blockedBy || + author.viewer?.blockingByList), ) if (isBlocked) { Toast.show(_(msg`Cannot interact with a blocked user`), { diff --git a/src/view/shell/bottom-bar/BottomBar.tsx b/src/view/shell/bottom-bar/BottomBar.tsx index 8c1fb3c52b..c61a13c083 100644 --- a/src/view/shell/bottom-bar/BottomBar.tsx +++ b/src/view/shell/bottom-bar/BottomBar.tsx @@ -351,14 +351,13 @@ export function BottomBar({navigation}: BottomTabBarProps) { ) } -interface BtnProps - extends Pick< - React.ComponentProps, - | 'accessible' - | 'accessibilityRole' - | 'accessibilityHint' - | 'accessibilityLabel' - > { +interface BtnProps extends Pick< + React.ComponentProps, + | 'accessible' + | 'accessibilityRole' + | 'accessibilityHint' + | 'accessibilityLabel' +> { testID?: string icon: JSX.Element notificationCount?: string