From 06c92d00b3586f26849fb04f18662b4ba7c96bf2 Mon Sep 17 00:00:00 2001 From: Antonis Lilis Date: Mon, 30 Mar 2026 16:55:12 +0200 Subject: [PATCH] chore(lint): Commit local lint fixes --- samples/expo/app/(tabs)/_layout.tsx | 19 ++++++---------- samples/expo/app/(tabs)/index.tsx | 17 ++++++-------- samples/expo/app/(tabs)/two.tsx | 20 +++++------------ samples/expo/app/+html.tsx | 5 +---- samples/expo/app/_layout.tsx | 13 +++++------ samples/expo/app/modal.tsx | 6 +---- samples/expo/components/EditScreenInfo.tsx | 26 +++++++++------------- samples/expo/components/ExternalLink.tsx | 4 +--- samples/expo/components/StyledText.tsx | 1 + samples/expo/components/Themed.tsx | 6 ++--- samples/expo/utils/dsn.ts | 3 +-- samples/expo/utils/setScopeProperties.ts | 2 +- 12 files changed, 43 insertions(+), 79 deletions(-) diff --git a/samples/expo/app/(tabs)/_layout.tsx b/samples/expo/app/(tabs)/_layout.tsx index 64cad2044f..dc831a1959 100644 --- a/samples/expo/app/(tabs)/_layout.tsx +++ b/samples/expo/app/(tabs)/_layout.tsx @@ -1,17 +1,14 @@ -import React from 'react'; import FontAwesome from '@expo/vector-icons/FontAwesome'; import { Link, Tabs } from 'expo-router'; +import React from 'react'; import { Pressable } from 'react-native'; -import Colors from '@/constants/Colors'; -import { useColorScheme } from '@/components/useColorScheme'; import { useClientOnlyValue } from '@/components/useClientOnlyValue'; +import { useColorScheme } from '@/components/useColorScheme'; +import Colors from '@/constants/Colors'; // You can explore the built-in icon families and icons on the web at https://icons.expo.fyi/ -function TabBarIcon(props: { - name: React.ComponentProps['name']; - color: string; -}) { +function TabBarIcon(props: { name: React.ComponentProps['name']; color: string }) { return ; } @@ -39,10 +36,7 @@ function InfoButton({ colorScheme }: { colorScheme: 'light' | 'dark' | null }) { export default function TabLayout() { const colorScheme = useColorScheme(); - const renderInfoButton = React.useCallback( - () => , - [colorScheme], - ); + const renderInfoButton = React.useCallback(() => , [colorScheme]); return ( + }} + > { if (isRunningInExpoGo()) { - console.warn( - 'Not supported in Expo Go. Build the application to test this feature.', - ); + console.warn('Not supported in Expo Go. Build the application to test this feature.'); return; } Sentry.nativeCrash(); @@ -202,9 +201,7 @@ export default function TabOneScreen() { string: 'string', bigint: BigInt(123), }); - Sentry.captureMessage( - 'Message with different types of tags globally', - ); + Sentry.captureMessage('Message with different types of tags globally'); Sentry.setTags({ number: undefined, boolean: undefined, diff --git a/samples/expo/app/(tabs)/two.tsx b/samples/expo/app/(tabs)/two.tsx index 91b3b56c0c..ef4a9840fe 100644 --- a/samples/expo/app/(tabs)/two.tsx +++ b/samples/expo/app/(tabs)/two.tsx @@ -1,5 +1,5 @@ -import { StyleSheet } from 'react-native'; import * as Sentry from '@sentry/react-native'; +import { StyleSheet } from 'react-native'; import EditScreenInfo from '@/components/EditScreenInfo'; import { Text, View } from '@/components/Themed'; @@ -8,25 +8,17 @@ export default function TabTwoScreen() { return ( Tab Two - + - This is unmasked because it's direct child of Sentry.Unmask (can be - masked if Sentry.Masked is used higher in the hierarchy) + This is unmasked because it's direct child of Sentry.Unmask (can be masked if Sentry.Masked is used higher in + the hierarchy) - - This is masked always because it's a child of a Sentry.Mask - + This is masked always because it's a child of a Sentry.Mask {/* Sentry.Unmask does not override the Sentry.Mask from above in the hierarchy */} - - This is masked always because it's a child of Sentry.Mask - + This is masked always because it's a child of Sentry.Mask diff --git a/samples/expo/app/+html.tsx b/samples/expo/app/+html.tsx index 4a13b7528b..6646145e2e 100644 --- a/samples/expo/app/+html.tsx +++ b/samples/expo/app/+html.tsx @@ -10,10 +10,7 @@ export default function Root({ children }: { children: React.ReactNode }) { - + {/* Disable body scrolling on web. This makes ScrollView components work closer to how they do on native. diff --git a/samples/expo/app/_layout.tsx b/samples/expo/app/_layout.tsx index 743acbc888..65c549cf43 100644 --- a/samples/expo/app/_layout.tsx +++ b/samples/expo/app/_layout.tsx @@ -1,19 +1,16 @@ import FontAwesome from '@expo/vector-icons/FontAwesome'; -import { - DarkTheme, - DefaultTheme, - ThemeProvider, -} from '@react-navigation/native'; +import { DarkTheme, DefaultTheme, ThemeProvider } from '@react-navigation/native'; +import * as Sentry from '@sentry/react-native'; import { isRunningInExpoGo } from 'expo'; import { useFonts } from 'expo-font'; +import * as ImagePicker from 'expo-image-picker'; import { SplashScreen, Stack, useNavigationContainerRef } from 'expo-router'; import { useEffect } from 'react'; +import { LogBox } from 'react-native'; import { useColorScheme } from '@/components/useColorScheme'; + import { SENTRY_INTERNAL_DSN } from '../utils/dsn'; -import * as Sentry from '@sentry/react-native'; -import { LogBox } from 'react-native'; -import * as ImagePicker from 'expo-image-picker'; export { // Catch any errors thrown by the Layout component. diff --git a/samples/expo/app/modal.tsx b/samples/expo/app/modal.tsx index f9afedc33b..fcedb7a7f3 100644 --- a/samples/expo/app/modal.tsx +++ b/samples/expo/app/modal.tsx @@ -8,11 +8,7 @@ export default function ModalScreen() { return ( Modal - + {/* Use a light status bar on iOS to account for the black space above the modal */} diff --git a/samples/expo/components/EditScreenInfo.tsx b/samples/expo/components/EditScreenInfo.tsx index bacfe95071..a3903366c6 100644 --- a/samples/expo/components/EditScreenInfo.tsx +++ b/samples/expo/components/EditScreenInfo.tsx @@ -1,46 +1,40 @@ import React from 'react'; import { StyleSheet } from 'react-native'; +import Colors from '@/constants/Colors'; + import { ExternalLink } from './ExternalLink'; import { MonoText } from './StyledText'; import { Text, View } from './Themed'; -import Colors from '@/constants/Colors'; - export default function EditScreenInfo({ path }: { path: string }) { return ( - + Open up the code for this screen: + lightColor="rgba(0,0,0,0.05)" + > {path} - - Change any of the text, save the file, and your app will automatically - update. + + Change any of the text, save the file, and your app will automatically update. + href="https://docs.expo.io/get-started/create-a-new-app/#opening-the-app-on-your-phonetablet" + > - Tap here if your app doesn't automatically update after making - changes + Tap here if your app doesn't automatically update after making changes diff --git a/samples/expo/components/ExternalLink.tsx b/samples/expo/components/ExternalLink.tsx index 2a2c336ac5..3cb3154e74 100644 --- a/samples/expo/components/ExternalLink.tsx +++ b/samples/expo/components/ExternalLink.tsx @@ -3,9 +3,7 @@ import * as WebBrowser from 'expo-web-browser'; import React from 'react'; import { Platform } from 'react-native'; -export function ExternalLink( - props: Omit, 'href'> & { href: string }, -) { +export function ExternalLink(props: Omit, 'href'> & { href: string }) { return ( ; } diff --git a/samples/expo/utils/dsn.ts b/samples/expo/utils/dsn.ts index 797eebefd8..65ff666306 100644 --- a/samples/expo/utils/dsn.ts +++ b/samples/expo/utils/dsn.ts @@ -1,2 +1 @@ -export const SENTRY_INTERNAL_DSN = - 'https://1df17bd4e543fdb31351dee1768bb679@o447951.ingest.sentry.io/5428561'; +export const SENTRY_INTERNAL_DSN = 'https://1df17bd4e543fdb31351dee1768bb679@o447951.ingest.sentry.io/5428561'; diff --git a/samples/expo/utils/setScopeProperties.ts b/samples/expo/utils/setScopeProperties.ts index c698e6d40a..6edb970fab 100644 --- a/samples/expo/utils/setScopeProperties.ts +++ b/samples/expo/utils/setScopeProperties.ts @@ -1,5 +1,5 @@ -import * as Sentry from '@sentry/react-native'; import { SeverityLevel } from '@sentry/core'; +import * as Sentry from '@sentry/react-native'; export const setScopeProperties = () => { const dateString = new Date().toString();