Drop accidental eslint dependency (#11460)

This commit is contained in:
Samuel Newman
2026-08-14 10:21:52 +03:00
committed by GitHub
parent afb3cdc26f
commit 70195d7059
62 changed files with 197 additions and 483 deletions
+1 -4
View File
@@ -31,10 +31,7 @@ export type AutocompleteSearch = {
}
export type AutocompleteItem =
| AutocompleteProfile
| AutocompleteTag
| AutocompleteEmoji
| AutocompleteSearch
AutocompleteProfile | AutocompleteTag | AutocompleteEmoji | AutocompleteSearch
export type AutocompleteItemType = AutocompleteItem['type']
+1 -2
View File
@@ -86,8 +86,7 @@ export type ButtonState = {
export type ButtonContext = VariantProps & ButtonState
type NonTextElements =
| React.ReactElement
| Iterable<React.ReactElement | null | undefined | boolean>
React.ReactElement | Iterable<React.ReactElement | null | undefined | boolean>
export type ButtonProps = Pick<
PressableProps,
@@ -13,8 +13,7 @@ export function useManageEmail2FA() {
enabled,
token,
}:
| {enabled: true; token?: undefined}
| {enabled: false; token: string}) => {
{enabled: true; token?: undefined} | {enabled: false; token: string}) => {
if (!currentAccount?.email) {
throw new Error('No email found for the current account')
}
@@ -66,11 +66,7 @@ type ErrorItem = {
}
type Item =
| ProfileItem
| ExistingChatItem
| EmptyItem
| PlaceholderItem
| ErrorItem
ProfileItem | ExistingChatItem | EmptyItem | PlaceholderItem | ErrorItem
export function SearchablePeopleList({
title,
+1 -3
View File
@@ -11,9 +11,7 @@ import * as bsky from '#/types/bsky'
* record (post/feed/list/etc.) so the caller can render a translated label.
*/
type ReplyEmbedSummary =
| {type: 'external'; uri: string}
| {type: 'post'}
| {type: 'unknown'}
{type: 'external'; uri: string} | {type: 'post'} | {type: 'unknown'}
function summarizeReplyEmbed(
embed: chat.bsky.convo.defs.MessageView['embed'],
+1 -3
View File
@@ -62,9 +62,7 @@ export function resolveAllowGroupInvites(
chat: {allowIncoming?: string; allowGroupInvites?: string} | undefined,
): 'all' | 'none' | 'following' {
return (chat?.allowGroupInvites ?? chat?.allowIncoming ?? 'following') as
| 'all'
| 'none'
| 'following'
'all' | 'none' | 'following'
}
export function localDateString(date: Date) {