eslint: use semicolon TypeScript delimeter

This commit is contained in:
Alex Gleason
2023-10-02 13:54:02 -05:00
parent 702124fb79
commit 645ce60a5f
479 changed files with 1928 additions and 1938 deletions

View File

@ -10,7 +10,7 @@ import { type Account, accountSchema } from 'soapbox/schemas';
import { useRelationship } from './useRelationship';
interface UseAccountOpts {
withRelationship?: boolean
withRelationship?: boolean;
}
function useAccount(accountId?: string, opts: UseAccountOpts = {}) {

View File

@ -8,7 +8,7 @@ import { useRelationships } from './useRelationships';
import type { EntityFn } from 'soapbox/entity-store/hooks/types';
interface useAccountListOpts {
enabled?: boolean
enabled?: boolean;
}
function useAccountList(listKey: string[], entityFn: EntityFn<void>, opts: useAccountListOpts = {}) {

View File

@ -10,7 +10,7 @@ import { type Account, accountSchema } from 'soapbox/schemas';
import { useRelationship } from './useRelationship';
interface UseAccountLookupOpts {
withRelationship?: boolean
withRelationship?: boolean;
}
function useAccountLookup(acct: string | undefined, opts: UseAccountLookupOpts = {}) {

View File

@ -6,9 +6,9 @@ import { useApi } from 'soapbox/hooks/useApi';
import { relationshipSchema } from 'soapbox/schemas';
interface FollowOpts {
reblogs?: boolean
notify?: boolean
languages?: string[]
reblogs?: boolean;
notify?: boolean;
languages?: string[];
}
function useFollow() {

View File

@ -6,7 +6,7 @@ import { useApi } from 'soapbox/hooks';
import { type Relationship, relationshipSchema } from 'soapbox/schemas';
interface UseRelationshipOpts {
enabled?: boolean
enabled?: boolean;
}
function useRelationship(accountId: string | undefined, opts: UseRelationshipOpts = {}) {

View File

@ -4,13 +4,13 @@ import { useApi } from 'soapbox/hooks/useApi';
import { groupSchema } from 'soapbox/schemas';
interface CreateGroupParams {
display_name?: string
note?: string
avatar?: File
header?: File
group_visibility?: 'members_only' | 'everyone'
discoverable?: boolean
tags?: string[]
display_name?: string;
note?: string;
avatar?: File;
header?: File;
group_visibility?: 'members_only' | 'everyone';
discoverable?: boolean;
tags?: string[];
}
function useCreateGroup() {

View File

@ -4,8 +4,8 @@ import { useApi } from 'soapbox/hooks/useApi';
import { useFeatures } from 'soapbox/hooks/useFeatures';
type Validation = {
error: string
message: string
error: string;
message: string;
}
const ValidationKeys = {

View File

@ -4,13 +4,13 @@ import { useApi } from 'soapbox/hooks/useApi';
import { groupSchema } from 'soapbox/schemas';
interface UpdateGroupParams {
display_name?: string
note?: string
avatar?: File | ''
header?: File | ''
group_visibility?: string
discoverable?: boolean
tags?: string[]
display_name?: string;
note?: string;
avatar?: File | '';
header?: File | '';
group_visibility?: string;
discoverable?: boolean;
tags?: string[];
}
function useUpdateGroup(groupId: string) {

View File

@ -1,8 +1,8 @@
import { useTimelineStream } from './useTimelineStream';
interface UseCommunityStreamOpts {
onlyMedia?: boolean
enabled?: boolean
onlyMedia?: boolean;
enabled?: boolean;
}
function useCommunityStream({ onlyMedia, enabled }: UseCommunityStreamOpts = {}) {

View File

@ -1,7 +1,7 @@
import { useTimelineStream } from './useTimelineStream';
interface UsePublicStreamOpts {
onlyMedia?: boolean
onlyMedia?: boolean;
}
function usePublicStream({ onlyMedia }: UsePublicStreamOpts = {}) {

View File

@ -1,8 +1,8 @@
import { useTimelineStream } from './useTimelineStream';
interface UseRemoteStreamOpts {
instance: string
onlyMedia?: boolean
instance: string;
onlyMedia?: boolean;
}
function useRemoteStream({ instance, onlyMedia }: UseRemoteStreamOpts) {