Enable ESLint errors and suppress existing violations (#10490)
This commit is contained in:
@@ -470,11 +470,11 @@ export async function draftToComposerPosts(
|
||||
height,
|
||||
mime: 'image/jpeg',
|
||||
},
|
||||
} as ComposerImage
|
||||
} satisfies ComposerImage
|
||||
})
|
||||
|
||||
const images = (await Promise.all(imagePromises)).filter(
|
||||
(img): img is ComposerImage => img !== null,
|
||||
(img): img is NonNullable<typeof img> => img !== null,
|
||||
)
|
||||
if (images.length > 0) {
|
||||
embed.media = {type: 'images', images}
|
||||
@@ -511,7 +511,7 @@ export async function draftToComposerPosts(
|
||||
tinygif: mediaObject,
|
||||
preview: mediaObject,
|
||||
},
|
||||
} as Gif,
|
||||
},
|
||||
alt: gifData.alt,
|
||||
}
|
||||
break
|
||||
|
||||
@@ -55,7 +55,7 @@ export function TestCtrls() {
|
||||
accessibilityLabel="Text input field"
|
||||
accessibilityHint="Enter proxy header"
|
||||
testID="e2eProxyHeaderInput"
|
||||
onChangeText={val => setProxyHeader(val as any)}
|
||||
onChangeText={val => setProxyHeader(val)}
|
||||
autoComplete="off"
|
||||
autoCorrect={false}
|
||||
autoCapitalize="none"
|
||||
|
||||
@@ -3,9 +3,9 @@ import {
|
||||
Pressable,
|
||||
type PressableProps,
|
||||
type StyleProp,
|
||||
type View,
|
||||
type ViewStyle,
|
||||
} from 'react-native'
|
||||
import {type View} from 'react-native'
|
||||
|
||||
import {addStyle} from '#/lib/styles'
|
||||
import {useInteractionState} from '#/components/hooks/useInteractionState'
|
||||
|
||||
@@ -171,7 +171,7 @@ function NativeStackNavigator({
|
||||
}
|
||||
|
||||
// Evicted screens get a lightweight placeholder instead of their full tree
|
||||
finalDescriptors = {} as typeof descriptors
|
||||
finalDescriptors = {}
|
||||
for (const key in descriptors) {
|
||||
if (mountSet.has(key)) {
|
||||
finalDescriptors[key] = descriptors[key]
|
||||
|
||||
Reference in New Issue
Block a user