Update prettier

This commit is contained in:
Zoe Roux 2024-01-27 20:31:06 +01:00
parent ec1184d5c9
commit a6a26cdf8d
16 changed files with 33 additions and 33 deletions

View File

@ -1,6 +1,6 @@
{
"extends": "expo/tsconfig.base",
"compilerOptions": {
"strict": true
}
"strict": true,
},
}

View File

@ -47,8 +47,8 @@ export const withTranslations = (
...commonOptions,
lng: props.pageProps.__lang,
resources: props.pageProps.__resources,
}),
i18next),
}),
i18next),
[props.pageProps.__lang, props.pageProps.__resources],
);

View File

@ -16,9 +16,9 @@
"incremental": true,
"baseUrl": ".",
"paths": {
"~/*": ["src/*"]
}
"~/*": ["src/*"],
},
},
"include": ["next-env.d.ts", "**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
"exclude": ["node_modules"],
}

View File

@ -63,8 +63,8 @@ export const queryFn = async <Data,>(
"path" in context
? (context.path.filter((x) => x) as string[])
: "pageParam" in context && context.pageParam
? [context.pageParam as string]
: (context.queryKey.filter((x) => x) as string[]),
? [context.pageParam as string]
: (context.queryKey.filter((x) => x) as string[]),
)
.join("/")
.replace("/?", "?");

View File

@ -18,9 +18,9 @@
"incremental": true,
"baseUrl": ".",
"paths": {
"~/*": ["src/*"]
}
"~/*": ["src/*"],
},
},
"include": ["**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
"exclude": ["node_modules"],
}

View File

@ -26,7 +26,7 @@ import { YoshikiStyle } from "yoshiki/src/type";
export type YoshikiEnhanced<Style> = Style extends any
? {
[key in keyof Style]: YoshikiStyle<Style[key]>;
}
}
: never;
export type Props = {

View File

@ -48,7 +48,7 @@ export const A = ({
? {
nativeBehavior: "stack-replace",
isNestedNavigator: false,
}
}
: undefined
}
textProps={css(

View File

@ -195,7 +195,7 @@ export const ContrastArea = ({
overlay1: theme.user.overlay1,
heading: theme.contrast,
paragraph: theme.heading,
}
}
: theme
}
>

View File

@ -34,5 +34,5 @@ export const focusReset: object =
? {
boxShadow: "unset",
outline: "none",
}
}
: {};

View File

@ -18,9 +18,9 @@
"incremental": true,
"baseUrl": ".",
"paths": {
"~/*": ["src/*"]
}
"~/*": ["src/*"],
},
},
"include": ["**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
"exclude": ["node_modules"],
}

View File

@ -67,7 +67,7 @@ const MediaInfoTable = ({
[t("mediainfo.video")]: video
? `${video.width}x${video.height} (${video.quality}) - ${formatBitrate(
video.bitrate,
)} - ${video.codec}`
)} - ${video.codec}`
: undefined,
},
audios === undefined

View File

@ -167,10 +167,10 @@ const VolumeSlider = () => {
isMuted || volume == 0
? VolumeOff
: volume < 25
? VolumeMute
: volume < 65
? VolumeDown
: VolumeUp
? VolumeMute
: volume < 65
? VolumeDown
: VolumeUp
}
onPress={() => setMuted(!isMuted)}
{...tooltip(t("player.mute"), true)}

View File

@ -111,12 +111,12 @@ export const Player = ({ slug, type }: { slug: string; type: "episode" | "movie"
data.type === "movie"
? data.name
: data.show!.name +
" " +
episodeDisplayNumber({
" " +
episodeDisplayNumber({
seasonNumber: data.seasonNumber,
episodeNumber: data.episodeNumber,
absoluteNumber: data.absoluteNumber,
})
})
}
description={data.overview}
/>
@ -171,14 +171,14 @@ Player.query = (type: "episode" | "movie", slug: string): QueryIdentifier<Item>
fields: ["nextEpisode", "previousEpisode", "show", "watchStatus"],
},
parser: EpisodeP.transform((x) => ({ ...x, type: "episode" })),
}
}
: {
path: ["movie", slug],
params: {
fields: ["watchStatus"],
},
parser: MovieP.transform((x) => ({ ...x, type: "movie" })),
};
};
Player.infoQuery = (type: "episode" | "movie", slug: string): QueryIdentifier<WatchInfo> => ({
path: ["video", type, slug, "info"],

View File

@ -106,7 +106,7 @@ const Video = forwardRef<NativeVideo, VideoProps>(function Video(
? {
type: "index",
value: subtitles?.indexOf(subtitle),
}
}
: { type: "disabled" }
}
{...props}

View File

@ -321,7 +321,7 @@ const toWebVtt = async (srtUrl: string) => {
headers: token
? {
Authorization: token,
}
}
: undefined,
});
const srt = await query.blob();

View File

@ -15,8 +15,8 @@
"resolveJsonModule": true,
"isolatedModules": true,
"jsx": "react-jsx",
"incremental": true
"incremental": true,
},
"include": ["**/*.ts", "**/*.tsx"],
"exclude": ["node_modules"]
"exclude": ["node_modules"],
}