Migrate to oxlint + oxfmt
This commit is contained in:
@@ -158,7 +158,7 @@ export const SOURCES_BY_MANGA_TYPE: Record<MangaType, string[]> = {
|
||||
* The actual matching data is in {@link MANGA_TAGS_BY_MANGA_TYPE} below.
|
||||
*/
|
||||
// @ts-ignore - see comment
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
// oxlint-disable-next-line no-unused-vars
|
||||
const MANGA_TAG_DESCRIPTORS_BY_MANGA_TYPE: Record<MangaType, MessageDescriptor[]> = {
|
||||
[MangaType.MANGA]: [msg`Manga`],
|
||||
[MangaType.COMIC]: [msg`Comic`],
|
||||
|
||||
@@ -169,7 +169,7 @@ const VerticalGrid = ({
|
||||
/>
|
||||
</Box>
|
||||
{/* render div to prevent UI jumping around when showing/hiding loading placeholder */}
|
||||
{/* eslint-disable no-nested-ternary */}
|
||||
{/* oxlint-disable no-nested-ternary */}
|
||||
{isSelectModeActive && gridLayout === GridLayout.List ? (
|
||||
<Box sx={{ paddingBottom: DEFAULT_FULL_FAB_HEIGHT }} />
|
||||
) : isLoading ? (
|
||||
@@ -177,7 +177,7 @@ const VerticalGrid = ({
|
||||
) : hasNextPage ? (
|
||||
<div style={{ height: '75px' }} />
|
||||
) : null}
|
||||
{/* eslint-enable no-nested-ternary */}
|
||||
{/* oxlint-enable no-nested-ternary */}
|
||||
</>
|
||||
);
|
||||
|
||||
|
||||
@@ -96,7 +96,7 @@ export const MangaCard = memo((props: MangaCardProps) => {
|
||||
const longPressBind = useLongPress(
|
||||
useCallback(
|
||||
(e: any, { context }: any) => {
|
||||
// eslint-disable-next-line no-param-reassign
|
||||
// oxlint-disable-next-line no-param-reassign
|
||||
e.shiftKey = true;
|
||||
handleClick(e, context as () => {});
|
||||
},
|
||||
|
||||
@@ -549,7 +549,7 @@ export class Mangas {
|
||||
// the migration actions (copy, cleanup) are supposed to be run sequentially to ensure that the cleanup
|
||||
// only happens in case the copy succeeded
|
||||
|
||||
// eslint-disable-next-line no-await-in-loop
|
||||
// oxlint-disable-next-line no-await-in-loop
|
||||
await performMigrationAction(migrationAction, ...actions);
|
||||
}
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user