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

@ -6,11 +6,11 @@ import { Avatar, Icon, HStack } from 'soapbox/components/ui';
import { useDraggedFiles } from 'soapbox/hooks';
interface IMediaInput {
className?: string
src: string | undefined
accept?: string
onChange: (files: FileList | null) => void
disabled?: boolean
className?: string;
src: string | undefined;
accept?: string;
onChange: (files: FileList | null) => void;
disabled?: boolean;
}
const AvatarPicker = React.forwardRef<HTMLInputElement, IMediaInput>(({ className, src, onChange, accept, disabled }, ref) => {

View File

@ -10,11 +10,11 @@ const messages = defineMessages({
});
interface IMediaInput {
src: string | undefined
accept?: string
onChange: (files: FileList | null) => void
onClear?: () => void
disabled?: boolean
src: string | undefined;
accept?: string;
onChange: (files: FileList | null) => void;
onClear?: () => void;
disabled?: boolean;
}
const HeaderPicker = React.forwardRef<HTMLInputElement, IMediaInput>(({ src, onChange, onClear, accept, disabled }, ref) => {

View File

@ -63,18 +63,18 @@ const messages = defineMessages({
* (By default, max 4 fields and 255 characters per property/value)
*/
interface AccountCredentialsField {
name: string
value: string
name: string;
value: string;
}
/** Private information (settings) for the account. */
interface AccountCredentialsSource {
/** Default post privacy for authored statuses. */
privacy?: string
privacy?: string;
/** Whether to mark authored statuses as sensitive by default. */
sensitive?: boolean
sensitive?: boolean;
/** Default language to use for authored statuses. (ISO 6391) */
language?: string
language?: string;
}
/**
@ -83,43 +83,43 @@ interface AccountCredentialsSource {
*/
interface AccountCredentials {
/** Whether the account should be shown in the profile directory. */
discoverable?: boolean
discoverable?: boolean;
/** Whether the account has a bot flag. */
bot?: boolean
bot?: boolean;
/** The display name to use for the profile. */
display_name?: string
display_name?: string;
/** The account bio. */
note?: string
note?: string;
/** Avatar image encoded using multipart/form-data */
avatar?: File | ''
avatar?: File | '';
/** Header image encoded using multipart/form-data */
header?: File | ''
header?: File | '';
/** Whether manual approval of follow requests is required. */
locked?: boolean
locked?: boolean;
/** Private information (settings) about the account. */
source?: AccountCredentialsSource
source?: AccountCredentialsSource;
/** Custom profile fields. */
fields_attributes?: AccountCredentialsField[]
fields_attributes?: AccountCredentialsField[];
// Non-Mastodon fields
/** Pleroma: whether to accept notifications from people you don't follow. */
stranger_notifications?: boolean
stranger_notifications?: boolean;
/** Soapbox BE: whether the user opts-in to email communications. */
accepts_email_list?: boolean
accepts_email_list?: boolean;
/** Pleroma: whether to publicly display followers. */
hide_followers?: boolean
hide_followers?: boolean;
/** Pleroma: whether to publicly display follows. */
hide_follows?: boolean
hide_follows?: boolean;
/** Pleroma: whether to publicly display follower count. */
hide_followers_count?: boolean
hide_followers_count?: boolean;
/** Pleroma: whether to publicly display follows count. */
hide_follows_count?: boolean
hide_follows_count?: boolean;
/** User's website URL. */
website?: string
website?: string;
/** User's location. */
location?: string
location?: string;
/** User's birthday. */
birthday?: string
birthday?: string;
}
/** Convert an account into an update_credentials request object. */