Drop accidental eslint dependency (#11460)
This commit is contained in:
@@ -31,10 +31,7 @@ export type AutocompleteSearch = {
|
||||
}
|
||||
|
||||
export type AutocompleteItem =
|
||||
| AutocompleteProfile
|
||||
| AutocompleteTag
|
||||
| AutocompleteEmoji
|
||||
| AutocompleteSearch
|
||||
AutocompleteProfile | AutocompleteTag | AutocompleteEmoji | AutocompleteSearch
|
||||
|
||||
export type AutocompleteItemType = AutocompleteItem['type']
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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'],
|
||||
|
||||
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user