[build] upgrade eslint to 9.37.0 (#88)
Co-authored-by: tobi <tobi.smethurst@protonmail.com> Reviewed-on: https://codeberg.org/superseriousbusiness/masto-fe-standalone/pulls/88 Co-authored-by: Zoë Bijl <moiety@noreply.codeberg.org> Co-committed-by: Zoë Bijl <moiety@noreply.codeberg.org>
This commit is contained in:
13
app/javascript/types/image.d.ts
vendored
13
app/javascript/types/image.d.ts
vendored
@@ -1,30 +1,29 @@
|
||||
/* eslint-disable import/no-default-export */
|
||||
declare module '*.avif' {
|
||||
declare module "*.avif" {
|
||||
const path: string;
|
||||
export default path;
|
||||
}
|
||||
|
||||
declare module '*.gif' {
|
||||
declare module "*.gif" {
|
||||
const path: string;
|
||||
export default path;
|
||||
}
|
||||
|
||||
declare module '*.jpg' {
|
||||
declare module "*.jpg" {
|
||||
const path: string;
|
||||
export default path;
|
||||
}
|
||||
|
||||
declare module '*.png' {
|
||||
declare module "*.png" {
|
||||
const path: string;
|
||||
export default path;
|
||||
}
|
||||
|
||||
declare module '*.svg' {
|
||||
declare module "*.svg" {
|
||||
const path: string;
|
||||
export default path;
|
||||
}
|
||||
|
||||
declare module '*.webp' {
|
||||
declare module "*.webp" {
|
||||
const path: string;
|
||||
export default path;
|
||||
}
|
||||
|
||||
@@ -1,53 +1,53 @@
|
||||
import type { Record } from 'immutable';
|
||||
import { type Record } from "immutable";
|
||||
|
||||
type CustomEmoji = Record<{
|
||||
shortcode: string;
|
||||
static_url: string;
|
||||
url: string;
|
||||
shortcode: string,
|
||||
static_url: string,
|
||||
url: string,
|
||||
}>;
|
||||
|
||||
type AccountField = Record<{
|
||||
name: string;
|
||||
value: string;
|
||||
verified_at: string | null;
|
||||
name: string,
|
||||
value: string,
|
||||
verified_at: string | null,
|
||||
}>;
|
||||
|
||||
interface AccountApiResponseValues {
|
||||
acct: string;
|
||||
avatar: string;
|
||||
avatar_static: string;
|
||||
bot: boolean;
|
||||
created_at: string;
|
||||
discoverable: boolean;
|
||||
display_name: string;
|
||||
emojis: CustomEmoji[];
|
||||
fields: AccountField[];
|
||||
followers_count: number;
|
||||
following_count: number;
|
||||
group: boolean;
|
||||
header: string;
|
||||
header_static: string;
|
||||
id: string;
|
||||
last_status_at: string;
|
||||
locked: boolean;
|
||||
note: string;
|
||||
statuses_count: number;
|
||||
url: string;
|
||||
uri: string;
|
||||
username: string;
|
||||
acct: string,
|
||||
avatar: string,
|
||||
avatar_static: string,
|
||||
bot: boolean,
|
||||
created_at: string,
|
||||
discoverable: boolean,
|
||||
display_name: string,
|
||||
emojis: CustomEmoji[],
|
||||
fields: AccountField[],
|
||||
followers_count: number,
|
||||
following_count: number,
|
||||
group: boolean,
|
||||
header: string,
|
||||
header_static: string,
|
||||
id: string,
|
||||
last_status_at: string,
|
||||
locked: boolean,
|
||||
note: string,
|
||||
statuses_count: number,
|
||||
url: string,
|
||||
uri: string,
|
||||
username: string,
|
||||
}
|
||||
|
||||
type NormalizedAccountField = Record<{
|
||||
name_emojified: string;
|
||||
value_emojified: string;
|
||||
value_plain: string;
|
||||
name_emojified: string,
|
||||
value_emojified: string,
|
||||
value_plain: string,
|
||||
}>;
|
||||
|
||||
interface NormalizedAccountValues {
|
||||
display_name_html: string;
|
||||
fields: NormalizedAccountField[];
|
||||
note_emojified: string;
|
||||
note_plain: string;
|
||||
display_name_html: string,
|
||||
fields: NormalizedAccountField[],
|
||||
note_emojified: string,
|
||||
note_plain: string,
|
||||
}
|
||||
|
||||
export type Account = Record<
|
||||
|
||||
Reference in New Issue
Block a user